chrisdickinson / fullscreen

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

document_exit undefined for older Firefox #4

Closed matthiasprieth closed 9 years ago

matthiasprieth commented 9 years ago

Tested with Firefox 36.04: var document_exit = ..... was undefined.

So document_exit.call(doc); raised an error.

dhritzkiv commented 9 years ago

+1

Looks like the problem comes from trying to call mozExitFullScreen or mozExitFullscreen when it should be mozCancelFullScreen, as per MDN. Looks like mozExitFull* never existed?

I'll fork, fix, and PR this shortly.

dhritzkiv commented 9 years ago

Looks like this is already addressed in PR #2. Hopefully merged soon.

matthiasprieth commented 9 years ago

Awesome thanks!