nl_tokens: Adds an event handler to the specified object and store reference to the handler in objects internal Plupload registry ( @see removeEvent ) .
pl_tokens: function ( obj , name , callback , <mask> ) { var func , events ; name = name . toLowerCase ( ) ; // Add event listener if ( obj . addEventListener ) { func = callback ; obj . addEventListener ( name , func , false ) ; } else if ( obj . attachEvent ) { func = function ( ) { var evt = window . event ; if ( ! evt . target ) { evt . target = evt . srcElement ; } evt . preventDefault = preventDefault ; evt . stopPropagation = stopPropagation ; callback ( evt ) ; } ; obj . attachEvent ( 'on' + name , func ) ; } // Log event handler to objects internal mOxie registry if ( ! obj [ uid ] ) { obj [ uid ] = Basic . guid ( ) ; } if ( ! eventhash . hasOwnProperty ( obj [ uid ] ) ) { eventhash [ obj [ uid ] ] = { } ; } events = eventhash [ obj [ uid ] ] ; if ( ! events . hasOwnProperty ( name ) ) { events [ name ] = [ ] ; } events [ name ] . push ( { func : func , orig : callback , // store original callback for IE key : key } ) ; }