Skip to content
Permalink
Browse files

Resizable: Partial fix for #3728: Use this._trigger for all events/ca…

…llbacks.
  • Loading branch information...
scottgonzalez committed Jan 3, 2009
1 parent fc60db3 commit 695b3e2c1b170ebb8be666df823038803e922665
Showing with 4 additions and 2 deletions.
  1. +4 −2 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,

0 comments on commit 695b3e2

Please sign in to comment.
You can’t perform that action at this time.