Namespacedojo.behavior

dojo.require("dojo.behavior");
defined in dojo/behavior.js

Usage

function () (view source)

Jump to PropertiesFunctionsBack to top

Functiondojo.behavior.add(behaviorObj)
add the specified behavior to the list of behaviors which will be applied the next time apply() is called. Calls to add() for an already existing behavior do not replace the previous rules, but are instead additive. New nodes which match the rule will have all add()-ed behaviors applied to them when matched.
applies all currently registered behaviors to the document, taking care to ensure that only incremental updates are made since the last time add() or apply() were called. If new matching nodes have been added, all rules in a behavior will be applied to that node. For previously matched nodes, only behaviors which have been added since the last call to apply() will be added to the nodes.

Jump to FunctionsPropertiesBack to top