Skip to content
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.

$lqguid #26

Open
AresD opened this issue Jun 16, 2015 · 7 comments
Open

$lqguid #26

AresD opened this issue Jun 16, 2015 · 7 comments

Comments

@AresD
Copy link

AresD commented Jun 16, 2015

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?

@leblancmeneses
Copy link

I get the same problem with jquery v1.9.1 .

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

@leblancmeneses
Copy link

I was using the public signatures incorrectly.

@AresD
Copy link
Author

AresD commented Jun 24, 2015

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

@leblancmeneses
Copy link

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.

@weiminye
Copy link

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

@codingyourlife
Copy link

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...

@ghost
Copy link

ghost commented Jan 11, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants