JX.behavior(name, control_function)Javelin Documentation ()
JX.behavior(name, control_function)
Javelin Documentation ()
Define a Javelin behavior, which holds glue code in a structured way. See Concepts: Behaviors for a detailed description of Javelin behaviors.
To define a behavior, provide a name and a function:
JX.behavior('win-a-hog', function(config, statics) {
alert("YOU WON A HOG NAMED " + config.hogName + "!");
});Parameters
| string | name | Behavior name. |
| function | control_function | Behavior callback/definition. |
Return
| void |
- Defined
- lib/behavior.js:27