fix the build

This commit is contained in:
Régis Hanol 2015-10-01 01:17:34 +02:00
parent 0b295150e7
commit 9bb7a3884b
1 changed files with 6 additions and 0 deletions

View File

@ -33,6 +33,12 @@ export default Ember.Controller.extend({
const selection = window.getSelection();
// no selections
if (selection.isCollapsed) {
this.set('buffer', '');
return;
}
// retrieve the selected range
const range = selection.getRangeAt(0),
cloned = range.cloneRange(),