Ticket #2474: selectable.diff
File selectable.diff, 947 bytes (added by , 15 years ago) |
---|
-
ui.selectable.js
old new 5 5 6 6 $.fn.extend({ 7 7 selectable: function(options) { 8 var args = Array.prototype.slice.call(arguments, 1); 9 8 10 return this.each(function() { 9 11 if (typeof options == "string") { 10 12 var select = $.data(this, "ui-selectable"); … … 20 22 var instance = this; 21 23 22 24 this.element = $(element); 23 24 $.data(this.element, "ui-selectable", this); 25 $.data(element, "ui-selectable", this); 25 26 this.element.addClass("ui-selectable"); 26 27 27 28 this.options = $.extend({ … … 91 92 this.element 92 93 .removeClass("ui-selectable ui-selectable-disabled") 93 94 .removeData("ui-selectable") 94 .unbind(".selectable") ;95 this.removeMouseInteraction();95 .unbind(".selectable") 96 .removeMouseInteraction(); 96 97 }, 97 98 enable: function() { 98 99 this.element.removeClass("ui-selectable-disabled");