Skip to content
Permalink
Browse files

droppable: a small performance improvement by not using :visible, and…

… deferring to a simpler syntax of checking for diplay none (fixed bool)
  • Loading branch information
Paul Bakaus
Paul Bakaus committed Jul 3, 2008
1 parent 9c2e67c commit cbda2f35ae18b10d2ca1904af9b2d156dc909b2b
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/ui.droppable.js
@@ -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 };

0 comments on commit cbda2f3

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