Core Docs | Additional Modules Docs

sb.events.attributeListener


@Description: Used to create an eventlistener that responds to events on nodes
with a specific className or combo of classNames in order. Observes by default
@File: events/attributeListener.js
@Param: object params Used to preseed the listener with class listeners
@Return: type desc
@Example:
var myListener = new sb.events.attributeListener({
    attribute: 'method',
    mousemove : {
        jump : function(e){
            console.log('move '+ new Date());
        }
    },
    click : {
        some_value : function(e){
            alert('click');
        }
    }
});