Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added Y.config.global, fixes #2532889

  • Loading branch information...
commit 7679e634f0007b22eb42bbdb0e7685ad6180fcb7 1 parent 85b30cc
Dav Glass davglass authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/yui/js/yui.js
12 src/yui/js/yui.js
View
@@ -458,7 +458,8 @@ proto = {
throwFail: true,
useBrowserConsole: true,
useNativeES5: true,
- win: win
+ win: win,
+ global: (typeof global === 'object' && typeof process === 'object' && process.versions && process.versions.node) ? global : win
};
//Register the CSS stamp element
@@ -1495,6 +1496,15 @@ overwriting other scripts configs.
*/
/**
+ * The global object. In Node.js it's an object called "global". In the
+ * browser is the current window object.
+ *
+ * @property global
+ * @type Object
+ * @default the global object
+ */
+
+/**
* The window/frame that this instance should operate in.
*
* @property win
Please sign in to comment.
Something went wrong with that request. Please try again.