Skip to content
Browse files

use DOM element comparison rather than ID comparison; that way elemen…

…ts without an id attribute do not get registered again when their plax params are modified
  • Loading branch information...
1 parent 7959c2f commit 6c35374f174be9a89792971a0c8f569b9b552b5b @dzuelke committed Oct 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/plax.js
View
2 js/plax.js
@@ -59,7 +59,7 @@
}
for (var i=0;i<layers.length;i++){
- if ($(this).attr('id') == layers[i].obj.attr('id')){
+ if (this === layers[i].obj.get(0)){
layerExistsAt = i
}
}

0 comments on commit 6c35374

Please sign in to comment.
Something went wrong with that request. Please try again.