react-backbone.js
function modelOrCollectionOnOrOnce(modelType, type, args, _this, _modelOrCollection) {
        var modelEvents = getModelAndCollectionEvents(modelType, _this);
        var ev = args[0];
        var cb = args[1];
        var ctx = args[2];
        modelEvents[ev] = {
            type: type,
            ev: ev,
            cb: cb,
            ctx: ctx
        };

        function _on(modelOrCollection) {
            _this[type === 'on' ? 'listenTo' : 'listenToOnce'](modelOrCollection, ev, cb, ctx);
        }
        if (modelEvents.__bound) {
            if (_modelOrCollection) {
                _on(_modelOrCollection);
            } else {
                getModelOrCollections(modelType, _this, _on);
            }
        }
    }
function modelOrCollectionOnOrOnce(modelType, type, args, _this, _modelOrCollection) {
        var modelEvents = getModelAndCollectionEvents(modelType, _this);
        var ev = args[0];
        var cb = args[1];
        var ctx = args[2];
        modelEvents[ev] = {
            type: type,
            ev: ev,
            cb: cb,
            ctx: ctx
        };

        function _on(modelOrCollection) {
            _this[type === 'on' ? 'listenTo' : 'listenToOnce'](modelOrCollection, ev, cb, ctx);
        }
        if (modelEvents.__bound) {
            if (_modelOrCollection) {
                _on(_modelOrCollection);
            } else {
                getModelOrCollections(modelType, _this, _on);
            }
        }
    }
function modelOrCollectionOnOrOnce ( modelType , type , args , _this , _modelOrCollection ) { var modelEvents = getModelAndCollectionEvents ( modelType , _this ) ; var ev = args [ 0 ] ; var cb = args [ 1 ] ; var ctx = args [ 2 ] ; modelEvents [ ev ] = { type : type , ev : ev , cb : cb , ctx : ctx } ; function _on ( modelOrCollection ) { _this [ type === 'on' ? 'listenTo' : 'listenToOnce' ] ( modelOrCollection , ev , cb , ctx ) ; } if ( modelEvents . __bound ) { if ( _modelOrCollection ) { _on ( _modelOrCollection ) ; } else { getModelOrCollections ( modelType , _this , _on ) ; } } }
Provide modelOn and modelOnce argument with proxied arguments
arguments are event, callback, context
Provide modelOn and modelOnce argument with proxied arguments arguments are event callback context