diff --git a/source/Editor.js b/source/Editor.js index c717e47..ea6286c 100644 --- a/source/Editor.js +++ b/source/Editor.js @@ -599,7 +599,7 @@ proto._updatePath = function ( range, force ) { // selectionchange is fired synchronously in IE when removing current selection // and when setting new selection; keyup/mouseup may have processing we want // to do first. Either way, send to next event loop. -proto._updatePathOnEvent = function ( event ) { +proto._updatePathOnEvent = function () { var self = this; if ( self._isFocused && !self._willUpdatePath ) { self._willUpdatePath = true; @@ -1611,8 +1611,7 @@ proto._setHTML = function ( html ) { }; proto.getHTML = function ( withBookMark ) { - var brs = [], - root, node, fixer, html, l, range; + var html, range; if ( withBookMark && ( range = this.getSelection() ) ) { this._saveRangeToBookmark( range ); } diff --git a/source/KeyHandlers.js b/source/KeyHandlers.js index 02cbc1d..adf47a2 100644 --- a/source/KeyHandlers.js +++ b/source/KeyHandlers.js @@ -506,7 +506,7 @@ var keyHandlers = { } }, space: function ( self, _, range ) { - var node, parent; + var node; var root = self._root; self._recordUndoState( range ); if ( self._config.addLinks ) { diff --git a/source/Node.js b/source/Node.js index ffd1204..9aee847 100644 --- a/source/Node.js +++ b/source/Node.js @@ -293,7 +293,6 @@ function fixContainer ( container, root ) { var doc = container.ownerDocument; var wrapper = null; var i, l, child, isBR; - var config = root.__squire__._config; for ( i = 0, l = children.length; i < l; i += 1 ) { child = children[i];