diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2009-01-16 18:35:04 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2009-01-16 18:35:04 +0000 |
commit | c631ae8d4f1a6f61fea2beecdfb8f90e62a0ed2b (patch) | |
tree | a0cf3274cc77e6cc5a47e215b13d66eb1b046901 /ui | |
parent | 4d44acdefc82f9ec4e0933bbabebed21fa4bf337 (diff) | |
download | jquery-ui-c631ae8d4f1a6f61fea2beecdfb8f90e62a0ed2b.tar.gz jquery-ui-c631ae8d4f1a6f61fea2beecdfb8f90e62a0ed2b.zip |
Fixed #3723 - Fix the ui.options reference
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.droppable.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/ui.droppable.js b/ui/ui.droppable.js index 623467411..fc10476ad 100644 --- a/ui/ui.droppable.js +++ b/ui/ui.droppable.js @@ -61,13 +61,13 @@ $.widget("ui.droppable", { _activate: function(event) { var draggable = $.ui.ddmanager.current; - if(this.options.activeClass) this.element.addClass(ui.options.activeClass); + if(this.options.activeClass) this.element.addClass(this.options.activeClass); (draggable && this._trigger('activate', event, this.ui(draggable))); }, _deactivate: function(event) { var draggable = $.ui.ddmanager.current; - if(this.options.activeClass) this.element.removeClass(ui.options.activeClass); + if(this.options.activeClass) this.element.removeClass(this.options.activeClass); (draggable && this._trigger('deactivate', event, this.ui(draggable))); }, @@ -77,7 +77,7 @@ $.widget("ui.droppable", { if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { - if(this.options.hoverClass) this.element.addClass(ui.options.hoverClass); + if(this.options.hoverClass) this.element.addClass(this.options.hoverClass); this._trigger('over', event, this.ui(draggable)); } @@ -89,7 +89,7 @@ $.widget("ui.droppable", { if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { - if(this.options.hoverClass) this.element.removeClass(ui.options.hoverClass); + if(this.options.hoverClass) this.element.removeClass(this.options.hoverClass); this._trigger('out', event, this.ui(draggable)); } @@ -110,8 +110,8 @@ $.widget("ui.droppable", { if(childrenIntersection) return false; if(this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { - if(this.options.activeClass) this.element.removeClass(ui.options.activeClass); - if(this.options.hoverClass) this.element.removeClass(ui.options.hoverClass); + if(this.options.activeClass) this.element.removeClass(this.options.activeClass); + if(this.options.hoverClass) this.element.removeClass(this.options.hoverClass); this._trigger('drop', event, this.ui(draggable)); return this.element; } |