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

Stapes.on example doesn't work #12

Closed
feklee opened this Issue Jul 30, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@feklee

feklee commented Jul 30, 2012

Excerpt from the documentation: "Note that these events are also triggered on the main Stapes object, so you can use Stapes.on to catch events from these mixed-in objects as well."

However, the code doesn't work:

Stapes.on('sing', function(data, e) {
    console.log("Singing from " + e.scope.name);
});

Error message (Chrome 20.0/WinXP/32): "TypeError: Cannot read property 'sing' of undefined"

@hay

This comment has been minimized.

Show comment
Hide comment
@hay

hay Aug 10, 2012

Owner

Yes, you're right. Unfortunately with refactoring the code for 0.5.1 a bug slipped in which breaks events on the Stapes global. I have a fix ready and will push it in the next few days.

Owner

hay commented Aug 10, 2012

Yes, you're right. Unfortunately with refactoring the code for 0.5.1 a bug slipped in which breaks events on the Stapes global. I have a fix ready and will push it in the next few days.

hay added a commit that referenced this issue Aug 15, 2012

@hay

This comment has been minimized.

Show comment
Hide comment
@hay

hay Aug 15, 2012

Owner

This is fixed in the last version in master and will be included in the next release.

Owner

hay commented Aug 15, 2012

This is fixed in the last version in master and will be included in the next release.

@hay hay closed this Aug 15, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment