aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.resizable.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-01-03 15:37:51 +0000
committerScott González <scott.gonzalez@gmail.com>2009-01-03 15:37:51 +0000
commit695b3e2c1b170ebb8be666df823038803e922665 (patch)
tree118f2d71f4056ed52648aa791237d5afe909d0c5 /ui/ui.resizable.js
parentfc60db3bbf277110de553dca49c07b97d5e5e601 (diff)
downloadjquery-ui-695b3e2c1b170ebb8be666df823038803e922665.tar.gz
jquery-ui-695b3e2c1b170ebb8be666df823038803e922665.zip
Resizable: Partial fix for #3728: Use this._trigger for all events/callbacks.
Diffstat (limited to 'ui/ui.resizable.js')
-rw-r--r--ui/ui.resizable.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js
index d437f1a99..52bb2b356 100644
--- a/ui/ui.resizable.js
+++ b/ui/ui.resizable.js
@@ -340,7 +340,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
this._updateCache(data);
// calling the user callback at the end
- this.element.triggerHandler("resize", [event, this.ui()], this.options["resize"]);
+ this._trigger('resize', event, this.ui());
return false;
},
@@ -511,7 +511,8 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
_propagate: function(n, event) {
$.ui.plugin.call(this, n, [event, this.ui()]);
- if (n != "resize") this.element.triggerHandler(["resize", n].join(""), [event, this.ui()], this.options[n]);
+
+ (n != "resize" && this._trigger(n, event, this.ui()));
},
plugins: {},
@@ -533,6 +534,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
$.extend($.ui.resizable, {
version: "@VERSION",
+ eventPrefix: "resize",
defaults: {
alsoResize: false,
animate: false,