forked from 0x2620/pandora
fix infinite loop in pandora.clickLinks if is an Ox.Element
This commit is contained in:
parent
9ce8eb246d
commit
0803046030
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ pandora.createLinks = function($element) {
|
|||
click: function(e) {
|
||||
var $target = $(e.target);
|
||||
while (true) {
|
||||
if ($target.is('a') || $target == $element) {
|
||||
if ($target.is('a') || $target[0] == $element[0]) {
|
||||
break;
|
||||
}
|
||||
$target = $($target.parent());
|
||||
|
|
Loading…
Reference in a new issue