aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.selectable.js
diff options
context:
space:
mode:
authorEduardo Lundgren <eduardolundgren@gmail.com>2009-01-16 02:09:45 +0000
committerEduardo Lundgren <eduardolundgren@gmail.com>2009-01-16 02:09:45 +0000
commit8139c81d1b3521c8b8406a3c069c1c8829b05abe (patch)
tree1b1a3d259e4521916f7ec4d510ff5201f43d5ea7 /ui/ui.selectable.js
parent78c4d87d7b2f9f8ece53f062eb44cabf9dd51bf3 (diff)
downloadjquery-ui-8139c81d1b3521c8b8406a3c069c1c8829b05abe.tar.gz
jquery-ui-8139c81d1b3521c8b8406a3c069c1c8829b05abe.zip
Revert changes for #3838 for the release 1.6rc5
Diffstat (limited to 'ui/ui.selectable.js')
-rw-r--r--ui/ui.selectable.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/ui/ui.selectable.js b/ui/ui.selectable.js
index 17728d298..d8f86a406 100644
--- a/ui/ui.selectable.js
+++ b/ui/ui.selectable.js
@@ -12,16 +12,9 @@
*/
(function($) {
-var widgetName = "selectable";
-var classWidgetName = ".selectable";
-
$.widget("ui.selectable", $.extend({}, $.ui.mouse, {
_init: function() {
- // update widgetName with the name given by the widget factory
- widgetName = this.widgetName;
- classWidgetName = '.' + widgetName;
-
var self = this;
this.element.addClass("ui-selectable");
@@ -63,8 +56,8 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
destroy: function() {
this.element
.removeClass("ui-selectable ui-selectable-disabled")
- .removeData(widgetName)
- .unbind(classWidgetName);
+ .removeData("selectable")
+ .unbind(".selectable");
this._mouseDestroy();
},