brandonaaron / livequery

MIT License
477 stars 195 forks source link

TypeError: d is undefined #23

Open douglasjam opened 10 years ago

douglasjam commented 10 years ago

Includes:

<script src="/js/jquery-2.0.3.min.js"></script>
<script src="/js/jquery.livequery.min.js"></script>

The call:

$('.input-mask-cep').livequery(function () {
        $(this).mask("99999-999");
    });

Result in firebug:

...his.id=a.livequery.queries.push(this)-1,d.$lqguid=d.$lqguid||a.livequery.guid++,...
buste commented 9 years ago

same here too. :(

bzkdjc commented 9 years ago

Same here also!

bzkdjc commented 9 years ago

Actually, you HAVE TO use this syntax if you don't want to get that error:

$("PARENT_SELECTOR").livequery("INNER_SELECTOR", matchedFn);

As in the following example:

$("ul:first").livequery('li', function(){ /* new <li> inserted */ });