fix clearing when using jquery 1.6. fixes #386
This commit is contained in:
parent
2adb8d3a78
commit
6690cc449c
@ -230,6 +230,10 @@
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
}
|
}
|
||||||
|
function killEventImmediately(event) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopImmediatePropagation();
|
||||||
|
}
|
||||||
|
|
||||||
function measureTextWidth(e) {
|
function measureTextWidth(e) {
|
||||||
if (!sizer){
|
if (!sizer){
|
||||||
@ -1578,7 +1582,7 @@
|
|||||||
selection.delegate("abbr", "mousedown", this.bind(function (e) {
|
selection.delegate("abbr", "mousedown", this.bind(function (e) {
|
||||||
if (!this.enabled) return;
|
if (!this.enabled) return;
|
||||||
this.clear();
|
this.clear();
|
||||||
killEvent(e);
|
killEventImmediately(e);
|
||||||
this.close();
|
this.close();
|
||||||
this.triggerChange();
|
this.triggerChange();
|
||||||
this.selection.focus();
|
this.selection.focus();
|
||||||
|
Loading…
Reference in New Issue
Block a user