},
width: false,
- // callbacks
+ // Callbacks
change: null,
close: null,
focus: null,
select: function( event, ui ) {
event.preventDefault();
- // support: IE8
+ // Support: IE8
// If the item was selected via a click, the text selection
// will be destroyed in IE
that._setSelection();
selection.removeAllRanges();
selection.addRange( this.range );
- // support: IE8
+ // Support: IE8
} else {
this.range.select();
}
- // support: IE
+ // Support: IE
// Setting the text selection kills the button focus in IE, but
// restoring the focus doesn't kill the selection.
this.button.focus();
this.range = selection.getRangeAt( 0 );
}
- // support: IE8
+ // Support: IE8
} else {
this.range = document.selection.createRange();
}
this.menu.outerWidth( Math.max(
this.button.outerWidth(),
- // support: IE10
+ // Support: IE10
// IE10 wraps long text (possibly a rounding bug)
// so we add 1px to avoid the wrapping
this.menu.width( "" ).outerWidth() + 1