Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/documentation/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ When you trigger the event, a single paramter can be passed as the second argume
```
// Assume that color is an object
square.bind("ChangeColor", function(color) {
this.color(color.r, color,g, color.b);
this.color(color.r, color.g, color.b);
})

// Specify the RGB values corresponding to pink
Expand Down Expand Up @@ -130,4 +130,4 @@ In such a globally bound function, the context will be the global Crafty object

`Crafty.unbind()` and `Crafty.one()` also exist, and act exactly as you'd expect!

One particularly important built-in global event is "UpdateFrame". You can read more about it in the section on Crafty's [game loop](/documentation/gameloop.html)
One particularly important built-in global event is "UpdateFrame". You can read more about it in the section on Crafty's [game loop](/documentation/gameloop.html)