mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-28 03:30:27 +00:00
Fixed an infinite loop problem when using $().parent() to crawl up the hierarchy.
This commit is contained in:
parent
f7d576b1b5
commit
dfdb4850b2
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ function createVirtualEvent(event, eventType)
|
|||
function getClosestElementWithVirtualBinding(element, eventType)
|
||||
{
|
||||
var $ele = $(element);
|
||||
while ($ele){
|
||||
while ($ele && $ele.length){
|
||||
var b = $ele.data(dataPropertyName);
|
||||
if (b && (!eventType || b[eventType])) {
|
||||
return $ele;
|
||||
|
|
|
|||
Loading…
Reference in a new issue