chrisdickinson/fullscreen — pull request #1 by jackbradshaw (2014-06-19 07:47:28+00:00)
Title: Added document level exit functions to the release method

When using the package in Chrome 35 the release method was throwing an error since all the 'exitFullscreen' variations were undefined on the element.

Looking at the spec:

https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#api

the exit methods appear to be on the document, not that element, and that works for me.

I've left the element level exit methods there in case they work for other browsers, if they are all undefined we then try the document level methods.