fix infinite loop in pandora.clickLinks if is an Ox.Element

This commit is contained in:
rolux 2014-12-15 20:05:26 +00:00
parent 9ce8eb246d
commit 0803046030

View file

@ -296,7 +296,7 @@ pandora.createLinks = function($element) {
click: function(e) { click: function(e) {
var $target = $(e.target); var $target = $(e.target);
while (true) { while (true) {
if ($target.is('a') || $target == $element) { if ($target.is('a') || $target[0] == $element[0]) {
break; break;
} }
$target = $($target.parent()); $target = $($target.parent());