Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Conflict] TypeError: Cannot read property 'x' of undefined #5

Closed
ghost opened this issue Dec 19, 2011 · 4 comments
Closed

[Conflict] TypeError: Cannot read property 'x' of undefined #5

ghost opened this issue Dec 19, 2011 · 4 comments

Comments

@ghost
Copy link

ghost commented Dec 19, 2011

one page error this bug

Uncaught TypeError: Cannot read property 'x' of undefined b.snowfall.updatesnowfall.min.jquery.js:34 psnowfall.min.jquery.js:57 b.snowfallsnowfall.min.jquery.js:124 (anonymous function)snowfall.min.jquery.js:133 e.extend.eachjquery.pack.js:3 e.fn.e.eachjquery.pack.js:3 b.fn.snowfallsnowfall.min.jquery.js:132 (anonymous function)posting.php:36 f.extend._Deferred.e.resolveWithjquery.pack.js:3 e.extend.readyjquery.pack.js:3 c.addEventListener.C

if (d.collection && this.x > this.target.x && this.x < this.target.width + this.target.x && this.y > this.target.y && this.y < this.target.height + this.target.y) {

@pettazz
Copy link

pettazz commented Dec 24, 2012

I've got this problem too. Looks like it's related to collection, probably something about the positioning of the collection elements.

@loktar00
Copy link
Owner

Hmm not able to reproduce, going to assume its been fixed in the recent version if not will reopen.

@davideforgione
Copy link

I'm still having this bug. On row 151 (this.target.x) i have this.target undefined, it's the canvasCollection (this.target = canvasCollection[random(0,canvasCollection.length-1)];) that's empty.

@davideforgione
Copy link

Further investigation details: The script is initialized on a master page with a collectonme class for collections. If it's running also on a child page where there's no element to collect on than goes in error.

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

No branches or pull requests

3 participants