livequery icon indicating copy to clipboard operation
livequery copied to clipboard

$lqguid

Open AresD opened this issue 9 years ago • 7 comments

With jquery 2.1.x I get this after downloading the latest livequery version: Uncaught TypeError: Cannot read property '$lqguid' of undefined

This error keeps livequery from doing its job. Does livequery work in jquery v2.1.3?

AresD avatar Jun 16 '15 12:06 AresD

I get the same problem with jquery v1.9.1 .

Online lint tools also show, http://www.jslint.com/ . Bad property name '$lqguid'.

leblancmeneses avatar Jun 23 '15 15:06 leblancmeneses

I was using the public signatures incorrectly.

leblancmeneses avatar Jun 24 '15 05:06 leblancmeneses

@leblancmeneses could you please elaborate? I still didn't figure out what I am doing wrong... maybe you can help me?

AresD avatar Jun 24 '15 07:06 AresD

I was using

$('#mylist li').livequery(function(elem) { 
});

when the readme.md says

$('#mylist').livequery('li', function(elem) { 
});

In the end I choose to just use http://stackoverflow.com/questions/3219758/detect-changes-in-the-dom in my chrome extension.

leblancmeneses avatar Jun 25 '15 04:06 leblancmeneses

The same issue I face, seems it is not fixed when a half year pass. It has no problem when I roll back to v1.3.6

weiminye avatar Jan 20 '16 09:01 weiminye

Lol noone cares about this problem ^^. I was looking for the fastest solution and ended up taking the only release version v1.1.1 from here https://github.com/brandonaaron/livequery/releases/tag/1.1.1 It's from 2010 so not really a recommendation...

codingyourlife avatar May 28 '16 09:05 codingyourlife

For support for jQuery 3 simply change this line q = q || new $.livequery(this.selector, this.context, type, fn, fn2); to this: q = q || new $.livequery(this, this.prevObject, type, fn, fn2); Reason is because 'this.selector' is deprecated in jQuery 1.7

ghost avatar Jan 11 '18 19:01 ghost