react-events.js
function _watchedEventsBindAll(context) {
        var watchedEvents = getState('__watchedEvents', context);
        if (watchedEvents) {
            var data;
            for (var name in watchedEvents) {
                if (watchedEvents.hasOwnProperty(name)) {
                    data = watchedEvents[name];
                    var target = getTarget(data.target, context);
                    if (target) {
                        target[data.type](data.event, data.callback, data.context);
                    }
                }
            }
        }
    }
function _watchedEventsBindAll(context) {
        var watchedEvents = getState('__watchedEvents', context);
        if (watchedEvents) {
            var data;
            for (var name in watchedEvents) {
                if (watchedEvents.hasOwnProperty(name)) {
                    data = watchedEvents[name];
                    var target = getTarget(data.target, context);
                    if (target) {
                        target[data.type](data.event, data.callback, data.context);
                    }
                }
            }
        }
    }
function _watchedEventsBindAll ( context ) { var watchedEvents = getState ( '__watchedEvents' , context ) ; if ( watchedEvents ) { var data ; for ( var name in watchedEvents ) { if ( watchedEvents . hasOwnProperty ( name ) ) { data = watchedEvents [ name ] ; var target = getTarget ( data . target , context ) ; if ( target ) { target [ data . type ] ( data . event , data . callback , data . context ) ; } } } } }
bind all registered events to the model
bind all registered events to the model