Last active
August 29, 2015 14:00
-
-
Save syntaqx/11189976 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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