examples/lib/timeline/timeline.js
function (object, event, properties) {
        var index = this.indexOf(object);
        var listener = this.listeners[index];
        if (listener) {
            var callbacks = listener.events[event];
            if (callbacks) {
                for (var i = 0, iMax = callbacks.length; i < iMax; i++) {
                    callbacks[i](properties);
                }
            }
        }
    }
function (object, event, properties) {
        var index = this.indexOf(object);
        var listener = this.listeners[index];
        if (listener) {
            var callbacks = listener.events[event];
            if (callbacks) {
                for (var i = 0, iMax = callbacks.length; i < iMax; i++) {
                    callbacks[i](properties);
                }
            }
        }
    }
function ( object , event , properties ) { var index = this . indexOf ( object ) ; var listener = this . listeners [ index ] ; if ( listener ) { var callbacks = listener . events [ event ] ; if ( callbacks ) { for ( var i = 0 , iMax = callbacks . length ; i < iMax ; i ++ ) { callbacks [ i ] ( properties ) ; } } } }
Trigger an event. All registered event handlers will be called
@param {Object} object
@param {String} event
@param {Object} properties (optional)
Trigger an event . All registered event handlers will be called