|
global The global object contains a reference to itself, which allows you to easily check for the existence of global objects, even in code that does not run in the global scope.
... comment
ars2004,
Sunday, 1. October 2006, 22:18
if (!global.foo) {
if (!global.foo) {
global.foo = {}; } foo.bar = function() {} ... link ... comment |
navigation
Download
Community
Weblog
Mailing Lists
IRC Channel
Documentation
Introductions
Tools
Reference
Project
Roadmap
Bug Reporting
Source
Wiki
Tags
Updates
Related Projects
search
|
||||