nl_tokens: Generate a new prototype method which will the given function once the desired state has been reached . The returned function accepts 2 arguments :
pl_tokens: function generate ( state ) { return function proxy ( fn , context ) { var rs = this ; if ( rs . is ( state ) ) { setTimeout ( function ( ) { fn . call ( context , rs . readyState ) ; } , 0 ) ; } else { if ( ! rs . _events [ state ] ) rs . _events [ state ] = [ ] ; rs . _events [ state ] . push ( { fn : fn , <mask> : context } ) ; } return rs ; } ; }