]> source.dussan.org Git - jquery-ui.git/commitdiff
slider:internal methods, fixes #3188
authorChi Cheng <cloudream@gmail.com>
Mon, 18 Aug 2008 00:07:09 +0000 (00:07 +0000)
committerChi Cheng <cloudream@gmail.com>
Mon, 18 Aug 2008 00:07:09 +0000 (00:07 +0000)
ui/ui.slider.js

index c9668af0f60e9dc8afc10b4304718041b04a3cdc..a15b34dd5c7a2ef91fb976e46a6c8b8162f12004 100644 (file)
@@ -46,7 +46,7 @@ $.widget("ui.slider", {
                        this.handle
                                .unwrap("a");
                        this.handle.each(function() {
-                               $(this).data("mouse").mouseDestroy();
+                               $(this).data("mouse")._mouseDestroy();
                        });
                }
                
@@ -93,15 +93,15 @@ $.widget("ui.slider", {
                                self._focus(this, true);
                        });
                        
-                       this.mouseInit();
+                       this._mouseInit();
                };
                
                $.extend(handleclass.prototype, $.ui.mouse, {
-                       mouseStart: function(e) { return self.start.call(self, e, this.element[0]); },
-                       mouseStop: function(e) { return self.stop.call(self, e, this.element[0]); },
-                       mouseDrag: function(e) { return self.drag.call(self, e, this.element[0]); },
-                       mouseCapture: function() { return true; },
-                       trigger: function(e) { this.mouseDown(e); }
+                       _mouseStart: function(e) { return self.start.call(self, e, this.element[0]); },
+                       _mouseStop: function(e) { return self.stop.call(self, e, this.element[0]); },
+                       _mouseDrag: function(e) { return self.drag.call(self, e, this.element[0]); },
+                       _mouseCapture: function() { return true; },
+                       trigger: function(e) { this._mouseDown(e); }
                });