Skip to content

Commit

Permalink
fixed some bug related _silentChange flag
Browse files Browse the repository at this point in the history
  • Loading branch information
shiren committed Dec 15, 2015
1 parent 7658bea commit e630e7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/wysiwygEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ WysiwygEditor.prototype._initSquireEvent = function() {
var sel = self.editor.getSelection(),
eventObj;

if (!this._silentChange) {
if (!self._silentChange) {
eventObj = {
source: 'wysiwyg',
selection: sel,
Expand All @@ -182,7 +182,7 @@ WysiwygEditor.prototype._initSquireEvent = function() {
self.eventManager.emit('change', eventObj);
self.eventManager.emit('contentChangedFromWysiwyg', self);
} else {
this._silentChange = false;
self._silentChange = false;
}

self._autoResizeHeightIfNeed();
Expand Down

0 comments on commit e630e7d

Please sign in to comment.