diff options
author | Richard Worth <rdworth@gmail.com> | 2008-09-20 02:43:18 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2008-09-20 02:43:18 +0000 |
commit | 0bae0870d920842f10322763c66bc59541b9158c (patch) | |
tree | 4133b7ebeb79260c75efc5f8a7f1133bbce85c9f /ui/ui.droppable.js | |
parent | 1285c6e76302a65f8eaf6380b33c010a1900519c (diff) | |
download | jquery-ui-0bae0870d920842f10322763c66bc59541b9158c.tar.gz jquery-ui-0bae0870d920842f10322763c66bc59541b9158c.zip |
whitespace
Diffstat (limited to 'ui/ui.droppable.js')
-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 5d14a64d2..cdd60e76a 100644 --- a/ui/ui.droppable.js +++ b/ui/ui.droppable.js @@ -16,7 +16,7 @@ $.widget("ui.droppable", { _setData: function(key, value) { - + if(key == 'accept') { this.options.accept = value && $.isFunction(value) ? value : function(d) { return d.is(accept); @@ -24,18 +24,18 @@ $.widget("ui.droppable", { } else { $.widget.prototype._setData.apply(this, arguments); } - + }, _init: function() { var o = this.options, accept = o.accept; this.isover = 0; this.isout = 1; - + this.options.accept = this.options.accept && $.isFunction(this.options.accept) ? this.options.accept : function(d) { return d.is(accept); }; - + //Store the droppable's proportions this.proportions = { width: this.element[0].offsetWidth, height: this.element[0].offsetHeight }; @@ -191,7 +191,7 @@ $.ui.ddmanager = { var m = $.ui.ddmanager.droppables[t.options.scope]; var type = e ? e.type : null; // workaround for #2317 var list = (t.currentItem || t.element).find(":data(droppable)").andSelf(); - + droppablesLoop: for (var i = 0; i < m.length; i++) { if(m[i].options.disabled || (t && !m[i].options.accept.call(m[i].element,(t.currentItem || t.element)))) continue; //No disabled and non-accepted @@ -230,7 +230,7 @@ $.ui.ddmanager = { if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, e); //Run through all droppables and check their positions based on specific tolerance options - + $.each($.ui.ddmanager.droppables[draggable.options.scope], function() { if(this.options.disabled || this.greedyChild || !this.visible) return; |