1
0
mirror of synced 2024-11-26 14:56:07 +03:00

fix clearing when using jquery 1.6. fixes #386

This commit is contained in:
Igor Vaynberg 2012-09-12 16:20:34 -07:00
parent 2adb8d3a78
commit 6690cc449c

View File

@ -230,6 +230,10 @@
event.preventDefault();
event.stopPropagation();
}
function killEventImmediately(event) {
event.preventDefault();
event.stopImmediatePropagation();
}
function measureTextWidth(e) {
if (!sizer){
@ -1578,7 +1582,7 @@
selection.delegate("abbr", "mousedown", this.bind(function (e) {
if (!this.enabled) return;
this.clear();
killEvent(e);
killEventImmediately(e);
this.close();
this.triggerChange();
this.selection.focus();