Skip to content
Judson edited this page Jul 8, 2011 · 1 revision

New methods can be made available across all behaviors by packaging them as Tools:

Ninja.packageTools({
  toolMethod: function(args) { ... }
})

From there on, the methods are available from inside any behaviors: helper methods, transform or event handler.

Clone this wiki locally