nl_tokens: Remove an event listener
pl_tokens: function removeListener ( obj , eventName , target , method ) { Ember . assert ( "You must pass at least an object and event name to Ember.removeListener" , ! ! obj && ! ! eventName ) ; if ( ! method && 'function' === typeof target ) { <mask> = target ; target = null ; } function _removeListener ( target , method ) { var actions = actionsFor ( obj , eventName ) , actionIndex = indexOf ( actions , target , method ) ; // action doesn't exist, give up silently if ( actionIndex === - 1 ) { return ; } actions . splice ( actionIndex , 3 ) ; if ( 'function' === typeof obj . didRemoveListener ) { obj . didRemoveListener ( eventName , target , method ) ; } } if ( method ) { _removeListener ( target , method ) ; } else { var meta = obj [ META_KEY ] , actions = meta && meta . listeners && meta . listeners [ eventName ] ; if ( ! actions ) { return ; } for ( var i = actions . length - 3 ; i >= 0 ; i -= 3 ) { _removeListener ( actions [ i ] , actions [ i + 1 ] ) ; } } }