¡@

Home 

2014/10/16 ¤W¤È 12:05:31

jquery Programming Glossary: modulescope

Defining an implementation independent version of the global object in JavaScript

http://stackoverflow.com/questions/8280137/defining-an-implementation-independent-version-of-the-global-object-in-javascrip

RingoJS and node.js the this pointer points to the current ModuleScope . However we can access the global object through the property.. global object through the property global defined on the ModuleScope . Hence we can access it via the this.global property. Hence.. the actual global object as defined by standards which is ModuleScope . Just because the actual global object in most js implementations..

Defining an implementation independent version of the global object in JavaScript

http://stackoverflow.com/questions/8280137/defining-an-implementation-independent-version-of-the-global-object-in-javascrip

or the window object. In CommonJS implementations such as RingoJS and node.js the this pointer points to the current ModuleScope . However we can access the global object through the property global defined on the ModuleScope . Hence we can access it.. points to the current ModuleScope . However we can access the global object through the property global defined on the ModuleScope . Hence we can access it via the this.global property. Hence this code snippet works in all browsers and in at least RingoJS.. in RingoJS and they infact put the global object inside the actual global object as defined by standards which is ModuleScope . Just because the actual global object in most js implementations has Object and String and so on doesn't make an object..