nl_tokens: Function for wraping callback to handle errors
pl_tokens: function cleanCallback ( errorCallback , callback ) { var self = this || { } ; if ( ! callback ) { return function ( err ) { // remove other variables if ( <mask> && self . log ) { self . log ( 'error' , err ) ; } errorCallback ( err ) ; } } return function ( err ) { if ( err ) { if ( self . log ) { self . log ( 'error' , err ) ; } errorCallback ( err ) ; return ; } callback . apply ( callback , Array . prototype . slice . call ( arguments , 1 ) ) ; } }