nl_tokens: uploader
pl_tokens: function Uploader ( options ) { if ( typeof options !== 'object' ) { throw <mask> TypeError ( 'options must be an object' ) ; } this . $el = this . _getElement ( options . el ) ; this . _elType = this . $el . tagName . toLowerCase ( ) ; // if ( options . name && typeof options . name !== 'string' ) { throw new TypeError ( 'options `name` must be a string' ) ; } if ( options . url && typeof options . url !== 'string' ) { throw new TypeError ( 'options `url` must be a string' ) ; } if ( options . method && typeof options . method !== 'string' ) { throw new TypeError ( 'options `method` must be a string' ) ; } if ( options . headers && typeof options . headers !== 'object' ) { throw new TypeError ( 'options `headers` must be an object' ) ; } // this . files = [ ] ; this . method = options . method || 'POST' ; this . name = options . name || 'file' ; this . url = options . url || null ; this . headers = options . headers || { } ; // EE3 EE3 . call ( this ) ; // error listener this . on ( 'error' , this . _onError . bind ( this ) ) ; // check support this . _checkSupport ( ) ; // attach to $el this . _attach ( ) ; }