]> source.dussan.org Git - jquery-ui.git/commitdiff
droppable: a small performance improvement by not using :visible, and deferring to...
authorPaul Bakaus <paul.bakaus@googlemail.com>
Thu, 3 Jul 2008 14:01:24 +0000 (14:01 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Thu, 3 Jul 2008 14:01:24 +0000 (14:01 +0000)
ui/ui.droppable.js

index 5f208afa354d6a521745a1fc0ad3348036a4a18d..6d3e159fa605898456bacd72f45b861f42973767 100644 (file)
@@ -179,7 +179,7 @@ $.ui.ddmanager = {
 
                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;
-                       m[i].visible = m[i].element.css("display") == "none"; if(!m[i].visible) continue; //If the element is not visible, continue
+                       m[i].visible = m[i].element.css("display") != "none"; if(!m[i].visible) continue; //If the element is not visible, continue
                        m[i].offset = m[i].element.offset();
                        m[i].proportions = { width: m[i].element[0].offsetWidth, height: m[i].element[0].offsetHeight };