sindresorhus/screenfull.js — pull request #13 by jreyes33 (2012-10-26 22:16:14+00:00)
Title: Fix screenfull.enabled on Safari 5.1

On version 1.0.2, `screenfull.enabled` is returning `undefined` on Safari 5.1 (tested on Windows and Mac OS X 10.7). I've replace the empty string by `webkitCancelFullScreen` as this is the way it's been checked in Modernizr https://github.com/Modernizr/Modernizr/blob/master/feature-detects/fullscreen-api.js

It works but might not be the best solution as it is currently returning a function instead of a boolean. Still, it is useful if you use loose comparisons (as those in the examples in the README).