nl_tokens: @file media - error . js A Custom MediaError class which mimics the standard HTML5 MediaError class .
pl_tokens: function MediaError ( value ) { // Allow redundant calls to this constructor to avoid having `instanceof` // checks peppered around the code. if ( value instanceof MediaError ) { return value ; } if ( typeof value === 'number' ) { this . code = value ; } else if ( typeof value === 'string' ) { // default code is zero, so this is a custom error this . <mask> = value ; } else if ( isObject ( value ) ) { // We assign the `code` property manually because native `MediaError` objects // do not expose it as an own/enumerable property of the object. if ( typeof value . code === 'number' ) { this . code = value . code ; } assign ( this , value ) ; } if ( ! this . message ) { this . message = MediaError . defaultMessages [ this . code ] || '' ; } }