Update autocomplete.js

Unsubscribe blurListener callback instead of onChange listener in auto complete.
This commit is contained in:
Zef Hemel 2014-02-03 17:19:56 +01:00
commit 2cf93d936e

View file

@ -90,7 +90,7 @@ var Autocomplete = function() {
this.detach = function() {
this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler);
this.editor.off("changeSelection", this.changeListener);
this.editor.off("blur", this.changeListener);
this.editor.off("blur", this.blurListener);
this.editor.off("mousedown", this.mousedownListener);
this.editor.off("mousewheel", this.mousewheelListener);
this.changeTimer.cancel();