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

Prototyping arrays + dancer.js #39

Open
pawel-dubiel opened this issue Dec 29, 2012 · 0 comments
Open

Prototyping arrays + dancer.js #39

pawel-dubiel opened this issue Dec 29, 2012 · 0 comments

Comments

@pawel-dubiel
Copy link

I am trying to extend array functionality but it doesn't play well with dancer.js

for instance:

Array.prototype.somethingrandom = function() {

};

after this the kick event stop working due the error

TypeError: this.sections[i].condition is not a function @ dancer.js:191

this.sections[i].condition is undefined.I could check in the dancer.js if .condition is undefined but what cause this problem?

for testing I'am using the very basic code from example section.

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

1 participant