diff options
author | Chi Cheng <cloudream@gmail.com> | 2008-08-18 02:05:29 +0000 |
---|---|---|
committer | Chi Cheng <cloudream@gmail.com> | 2008-08-18 02:05:29 +0000 |
commit | ba5799b68b99e014ff48fcc400bb2b2be1c7f258 (patch) | |
tree | 1153380015ea163edc29a65b247a3b733257c501 | |
parent | 4d2fb8296074a6273e303777681f5a2bd03c0350 (diff) | |
download | jquery-ui-ba5799b68b99e014ff48fcc400bb2b2be1c7f258.tar.gz jquery-ui-ba5799b68b99e014ff48fcc400bb2b2be1c7f258.zip |
Slider: internal methods
-rw-r--r-- | ui/ui.slider.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/ui.slider.js b/ui/ui.slider.js index a15b34dd5..ad33290e1 100644 --- a/ui/ui.slider.js +++ b/ui/ui.slider.js @@ -97,9 +97,9 @@ $.widget("ui.slider", { }; $.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]); }, + _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); } }); @@ -295,7 +295,7 @@ $.widget("ui.slider", { }, - start: function(e, handle) { + _start: function(e, handle) { var o = this.options; if(o.disabled) return false; @@ -315,11 +315,11 @@ $.widget("ui.slider", { this.firstValue = this.value(); this._propagate('start', e); - this.drag(e, handle); + this._drag(e, handle); return true; }, - stop: function(e) { + _stop: function(e) { this._propagate('stop', e); if (this.firstValue != this.value()) this._propagate('change', e); @@ -327,7 +327,7 @@ $.widget("ui.slider", { this._focus(this.currentHandle, true); return false; }, - drag: function(e, handle) { + _drag: function(e, handle) { var o = this.options; var position = { top: e.pageY - this.offset.top - this.clickOffset.top, left: e.pageX - this.offset.left - this.clickOffset.left}; |