diff options
author | Chi Cheng <cloudream@gmail.com> | 2008-08-16 15:37:17 +0000 |
---|---|---|
committer | Chi Cheng <cloudream@gmail.com> | 2008-08-16 15:37:17 +0000 |
commit | 8c3be4fdcbbbc24c84963a4039f72f7863b98167 (patch) | |
tree | 56c0907b2d097d9cd32430df396a8dfec3ba6c6a /ui | |
parent | 9e51a72780c46bdf3f1c2369485b2c7c46b02229 (diff) | |
download | jquery-ui-8c3be4fdcbbbc24c84963a4039f72f7863b98167.tar.gz jquery-ui-8c3be4fdcbbbc24c84963a4039f72f7863b98167.zip |
resizable: internal methods
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.resizable.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js index 7b681af55..d8509deaa 100644 --- a/ui/ui.resizable.js +++ b/ui/ui.resizable.js @@ -13,7 +13,7 @@ (function($) { $.widget("ui.resizable", $.extend({}, $.ui.mouse, { - init: function() { + _init: function() { var self = this, o = this.options; @@ -227,7 +227,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, { originalPosition: this.originalPosition }; }, - propagate: function(n,e) { + _propagate: function(n,e) { $.ui.plugin.call(this, n, [e, this.ui()]); if (n != "resize") this.element.triggerHandler(["resize", n].join(""), [e, this.ui()], this.options[n]); }, @@ -309,7 +309,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, { if (o.preserveCursor) $('body').css('cursor', this.axis + '-resize'); - this.propagate("start", e); + this._propagate("start", e); return true; }, mouseDrag: function(e) { @@ -331,7 +331,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, { data = this._respectSize(data, e); // plugins callbacks need to be called first - this.propagate("resize", e); + this._propagate("resize", e); el.css({ top: this.position.top + "px", left: this.position.left + "px", @@ -371,7 +371,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, { if (o.preserveCursor) $('body').css('cursor', 'auto'); - this.propagate("stop", e); + this._propagate("stop", e); if (o.helper) this.helper.remove(); @@ -672,7 +672,7 @@ $.ui.plugin.add("resizable", "animate", { // propagating resize, and updating values for each animation step self._updateCache(data); - self.propagate("animate", e); + self._propagate("animate", e); } } |