diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-01-03 05:52:26 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-01-03 05:52:26 +0000 |
commit | bb3328dafd6b5d8f08fd53a817f4c6858fa63385 (patch) | |
tree | c6397bd554a25f6b7746f6839d37add75ff5d2af | |
parent | 7fa669beb05f87d95c94f013d345559dde7c2b0a (diff) | |
download | jquery-ui-bb3328dafd6b5d8f08fd53a817f4c6858fa63385.tar.gz jquery-ui-bb3328dafd6b5d8f08fd53a817f4c6858fa63385.zip |
Selectable: Fixed #3752: Cleaned up ui hash in callbacks.
-rw-r--r-- | ui/ui.selectable.js | 35 |
1 files changed, 8 insertions, 27 deletions
diff --git a/ui/ui.selectable.js b/ui/ui.selectable.js index 4d7633cfd..4aa59027e 100644 --- a/ui/ui.selectable.js +++ b/ui/ui.selectable.js @@ -73,11 +73,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, { this.selectees = $(options.filter, this.element[0]); - // selectable START callback - this._trigger("start", event, { - "selectable": this.element[0], - "options": options - }); + this._trigger("start", event); $('body').append(this.helper); // position helper (lasso) @@ -104,9 +100,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, { selectee.unselecting = true; // selectable UNSELECTING callback self._trigger("unselecting", event, { - selectable: self.element[0], - unselecting: selectee.element, - options: options + unselecting: selectee.element }); } }); @@ -159,9 +153,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, { selectee.selecting = true; // selectable SELECTING callback self._trigger("selecting", event, { - selectable: self.element[0], - selecting: selectee.element, - options: options + selecting: selectee.element }); } } else { @@ -181,9 +173,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, { } // selectable UNSELECTING callback self._trigger("unselecting", event, { - selectable: self.element[0], - unselecting: selectee.element, - options: options + unselecting: selectee.element }); } } @@ -196,9 +186,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, { selectee.unselecting = true; // selectable UNSELECTING callback self._trigger("unselecting", event, { - selectable: self.element[0], - unselecting: selectee.element, - options: options + unselecting: selectee.element }); } } @@ -221,9 +209,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, { selectee.unselecting = false; selectee.startselected = false; self._trigger("unselected", event, { - selectable: self.element[0], - unselected: selectee.element, - options: options + unselected: selectee.element }); }); $('.ui-selecting', this.element[0]).each(function() { @@ -233,15 +219,10 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, { selectee.selected = true; selectee.startselected = true; self._trigger("selected", event, { - selectable: self.element[0], - selected: selectee.element, - options: options + selected: selectee.element }); }); - this._trigger("stop", event, { - selectable: self.element[0], - options: this.options - }); + this._trigger("stop", event); this.helper.remove(); |