dist/toolkit.js
function(event, context, callback, selector) {
        var options = this.options;

        // Replace tokens
        if (event === '{mode}') {
            event = options.mode;
        }

        if (selector === '{selector}') {
            selector = this.nodes ? this.nodes.selector : '';
        }

        // Find and bind the function
        if ($.type(callback) === 'string') {
            callback = this[callback].bind(this);
        }

        this.__events.push([event, context, callback, selector]);
    }
function(event, context, callback, selector) {
        var options = this.options;

        // Replace tokens
        if (event === '{mode}') {
            event = options.mode;
        }

        if (selector === '{selector}') {
            selector = this.nodes ? this.nodes.selector : '';
        }

        // Find and bind the function
        if ($.type(callback) === 'string') {
            callback = this[callback].bind(this);
        }

        this.__events.push([event, context, callback, selector]);
    }
function ( event , context , callback , selector ) { var options = this . options ; // Replace tokens if ( event === '{mode}' ) { event = options . mode ; } if ( selector === '{selector}' ) { selector = this . nodes ? this . nodes . selector : '' ; } // Find and bind the function if ( $ . type ( callback ) === 'string' ) { callback = this [ callback ] . bind ( this ) ; } this . __events . push ( [ event , context , callback , selector ] ) ; }
Add an event to bind.

@param {String} event
@param {String} context
@param {String|Function} callback
@param {String} selector
Add an event to bind .