From 8139c81d1b3521c8b8406a3c069c1c8829b05abe Mon Sep 17 00:00:00 2001 From: Eduardo Lundgren Date: Fri, 16 Jan 2009 02:09:45 +0000 Subject: Revert changes for #3838 for the release 1.6rc5 --- ui/ui.selectable.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'ui/ui.selectable.js') 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(); }, -- cgit v1.2.3