<jQuery>.scf.behavior

Release 1.1 - ...

The <jQuery>.scf.behavior class is used for defining an attaching SCF behaviors.

add(String name, Object interface, Object base)

Adds a global behavior that can be attached to a jQuery selector.

Usage:

Javascript CopyCode image Copy Code
$j.scf.behavior.add(<name>, {
   [autoAttach: "string",]
   attach: function(element, settings, jqueryObject){          
   }
);

Behaviors can be attached automatically, by using the autoAttach property, or programmatically, using the $j().scf.behavior() selector method.

get(String name)

Gets a global behavior that has previously been added.

Usage:

Javascript CopyCode image Copy Code
var bhr = $j.scf.behavior.get(<name>);