Skip to content

Instantly share code, notes, and snippets.

@syntaqx
Last active August 29, 2015 14:00
Show Gist options
  • Save syntaqx/11189976 to your computer and use it in GitHub Desktop.
Save syntaqx/11189976 to your computer and use it in GitHub Desktop.
(function () {
// I'm in teh global scopes, technically.
// But I won't leak my juices into everyone else.
var root = this,
document = root.document || null
if (typeof document === 'undefined') {
return throw new Exception('Bitch please, we need to be in the browser')
}
// Allow easier use of getElementById
var getElementById = function (id) { return document.getElementById(id); };
}).call(this)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment