chrisdickinson / fullscreen

fullscreen polyfill api that presents an event emitter
36 stars 19 forks source link

Emit 'error' if we are unable to find native API methods on target el #13

Closed ggingell closed 2 years ago

ggingell commented 7 years ago

Also emit 'error' from .request() instead of erroring on 'rfs.apply'. Refactor ee.emit('error' ...) into helper function emitError(msg).