nl_tokens: add - add reducers
pl_tokens: function add ( reducers , scope , defaultState ) { if ( scope === undefined ) scope = "general" ; // Add combine reducer _combines [ scope ] !== undefined || defineReducer ( scope ) ; // Add data var scopeReducers = _reducers [ scope ] || { } ; for ( var <mask> in reducers ) { var reducer = reducers [ type ] ; if ( typeof reducer === 'function' ) { if ( scopeReducers [ type ] === undefined ) { scopeReducers [ type ] = [ reducer ] ; } else { scopeReducers [ type ] . push ( reducer ) ; } } } if ( defaultState !== undefined ) { scopeReducers . _default = defaultState ; } _reducers [ scope ] = scopeReducers ; }