r1499 - trunk/ui
r1499 - trunk/ui
Author: scott.gonzalez
Date: Sat Jan 3 07:37:51 2009
New Revision: 1499
Modified:
trunk/ui/ui.resizable.js
Log:
Resizable: Partial fix for #3728: Use this._trigger for all
events/callbacks.
Modified: trunk/ui/ui.resizable.js
==============================================================================
--- trunk/ui/ui.resizable.js (original)
+++ trunk/ui/ui.resizable.js Sat Jan 3 07:37:51 2009
@@ -340,7 +340,7 @@
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 @@
_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 @@
$.extend($.ui.resizable, {
version: "@VERSION",
+ eventPrefix: "resize",
defaults: {
alsoResize: false,
animate: false,