mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-12 16:43:10 +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)
|
function getClosestElementWithVirtualBinding(element, eventType)
|
||||||
{
|
{
|
||||||
var $ele = $(element);
|
var $ele = $(element);
|
||||||
while ($ele){
|
while ($ele && $ele.length){
|
||||||
var b = $ele.data(dataPropertyName);
|
var b = $ele.data(dataPropertyName);
|
||||||
if (b && (!eventType || b[eventType])) {
|
if (b && (!eventType || b[eventType])) {
|
||||||
return $ele;
|
return $ele;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue