diff options
Diffstat (limited to 'ui/ui.slider.js')
-rw-r--r-- | ui/ui.slider.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ui/ui.slider.js b/ui/ui.slider.js index d2762deff..6b21e162c 100644 --- a/ui/ui.slider.js +++ b/ui/ui.slider.js @@ -13,9 +13,15 @@ (function($) { +var widgetName = "slider"; +var classWidgetName = ".slider"; + $.widget("ui.slider", $.extend({}, $.ui.mouse, { _init: function() { + // update widgetName with the name given by the widget factory + widgetName = this.widgetName; + classWidgetName = '.' + widgetName; var self = this, o = this.options; this._keySliding = false; @@ -160,8 +166,8 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, { + " ui-widget" + " ui-widget-content" + " ui-corner-all") - .removeData("slider") - .unbind(".slider"); + .removeData(widgetName) + .unbind(classWidgetName); this._mouseDestroy(); |