toji/game-shim — pull request #9 by cpearce (2012-11-08 04:07:36+00:00)
Title: Make document.fullscreenEnabled map to document.webkitFullScreenEnabled

Currently for webkit the document.fullscreenEnabled shim checks whether webkitRequestFullScreen is in document, but that won't work, since webkitRequestFullScreen is a method on element not document.

It looks like webkit (or Chrome at least) has now implemented document.webkitFullScreenEnabled, so this changeset maps document.fullscreenEnabled to that instead. The result being document.fullscreenEnabled now works in Chrome!