Add current fullscreen state.
Useful for switching between fullscreen: function onKeyup(ev) { if (ev.keyCode !== 75) return; // f key if (fullscreen.fulled) fullscreen.exit(); else fullscreen(); }
looks good to me except the name "fulled" is weird, maybe "enabled", so that in use it would look like if (fullscreen.enabled) {
+1 for enabled, or even just fullscreen or maybe even isFullscreen. Definitely not fulled since that's not a word.
fullscreen.isFullscreen would be a little redundant haha
didFullscreen hahah... jk
I thought 'full' can be used as a verb, no? I'm too lazy to use the api if the name has more than 6 characters, or 5. fullscreen.isFullscreen doesn't sound nice. +1 for fullscreen.full or fullscreen.enabled