Skip to content
This repository has been archived by the owner. It is now read-only.

Stapes.on example doesn't work #12

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

Stapes.on example doesn't work #12

feklee opened this issue Jul 30, 2012 · 2 comments

Comments

@feklee
Copy link

@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
Copy link
Owner

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

Loading

hay added a commit that referenced this issue Aug 15, 2012
@hay
Copy link
Owner

@hay hay commented Aug 15, 2012

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

Loading

@hay hay closed this Aug 15, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants