nl_tokens: The getUnscheduler returns mocks for clearTimeout and clearInterval .
pl_tokens: function getUnscheduler ( ) { // TODO: Create a map of IDs if the schedules array gets large. return function ( id ) { for ( var i = 0 , l = schedules . length ; i < l ; i ++ ) { var schedule = schedules [ i ] if ( schedule . id === <mask> ) { schedules . splice ( i , 1 ) break } } } }