Skip to content

Commit

Permalink
Loader build files for only setting global if its not explicitly set.
Browse files Browse the repository at this point in the history
	modified:   ../build/yui-base/yui-base-coverage.js
	modified:   ../build/yui-base/yui-base-debug.js
	modified:   ../build/yui-base/yui-base-min.js
	modified:   ../build/yui-base/yui-base.js
	modified:   ../build/yui-core/yui-core-coverage.js
	modified:   ../build/yui-core/yui-core-debug.js
	modified:   ../build/yui-core/yui-core-min.js
	modified:   ../build/yui-core/yui-core.js
	modified:   ../build/yui-nodejs/yui-nodejs-coverage.js
	modified:   ../build/yui-nodejs/yui-nodejs-debug.js
	modified:   ../build/yui-nodejs/yui-nodejs-min.js
	modified:   ../build/yui-nodejs/yui-nodejs.js
	modified:   ../build/yui/yui-coverage.js
	modified:   ../build/yui/yui-debug.js
	modified:   ../build/yui/yui-min.js
	modified:   ../build/yui/yui.js
  • Loading branch information
tripp committed Sep 25, 2014
1 parent 518b9d1 commit 4281409
Show file tree
Hide file tree
Showing 16 changed files with 226 additions and 66 deletions.
4 changes: 2 additions & 2 deletions build/yui-base/yui-base-coverage.js

Large diffs are not rendered by default.

24 changes: 22 additions & 2 deletions build/yui-base/yui-base-debug.js
Expand Up @@ -132,6 +132,7 @@ available.

// bind the specified additional modules for this instance
if (!l) {
Y._afterConfig();
Y._setup();
}
}
Expand All @@ -145,6 +146,7 @@ available.
Y.applyConfig(args[i]);
}

Y._afterConfig();
Y._setup();
}

Expand Down Expand Up @@ -476,8 +478,7 @@ proto = {
throwFail: true,
useBrowserConsole: true,
useNativeES5: true,
win: win,
global: Function('return this')()
win: win
};

//Register the CSS stamp element
Expand Down Expand Up @@ -506,6 +507,25 @@ proto = {

},

/**
This method is called after all other configuration has been applied to
the YUI instance.
@method _afterConfig
@private
**/
_afterConfig: function () {
var Y = this;

// We need to set up Y.config.global after the rest of the configuration
// so that setting it in user configuration prevents the library from
// using eval(). This is critical for Content Security Policy enabled
// sites and other environments like Chrome extensions
if (!Y.config.hasOwnProperty('global')) {
Y.config.global = Function('return this')();
}
},

/**
Finishes the instance setup. Attaches whatever YUI modules were defined
at the time that this instance was created.
Expand Down
14 changes: 7 additions & 7 deletions build/yui-base/yui-base-min.js

Large diffs are not rendered by default.

24 changes: 22 additions & 2 deletions build/yui-base/yui-base.js
Expand Up @@ -132,6 +132,7 @@ available.

// bind the specified additional modules for this instance
if (!l) {
Y._afterConfig();
Y._setup();
}
}
Expand All @@ -145,6 +146,7 @@ available.
Y.applyConfig(args[i]);
}

Y._afterConfig();
Y._setup();
}

Expand Down Expand Up @@ -476,8 +478,7 @@ proto = {
throwFail: true,
useBrowserConsole: true,
useNativeES5: true,
win: win,
global: Function('return this')()
win: win
};

//Register the CSS stamp element
Expand Down Expand Up @@ -506,6 +507,25 @@ proto = {

},

/**
This method is called after all other configuration has been applied to
the YUI instance.
@method _afterConfig
@private
**/
_afterConfig: function () {
var Y = this;

// We need to set up Y.config.global after the rest of the configuration
// so that setting it in user configuration prevents the library from
// using eval(). This is critical for Content Security Policy enabled
// sites and other environments like Chrome extensions
if (!Y.config.hasOwnProperty('global')) {
Y.config.global = Function('return this')();
}
},

/**
Finishes the instance setup. Attaches whatever YUI modules were defined
at the time that this instance was created.
Expand Down
4 changes: 2 additions & 2 deletions build/yui-core/yui-core-coverage.js

Large diffs are not rendered by default.

24 changes: 22 additions & 2 deletions build/yui-core/yui-core-debug.js
Expand Up @@ -132,6 +132,7 @@ available.

// bind the specified additional modules for this instance
if (!l) {
Y._afterConfig();
Y._setup();
}
}
Expand All @@ -145,6 +146,7 @@ available.
Y.applyConfig(args[i]);
}

Y._afterConfig();
Y._setup();
}

Expand Down Expand Up @@ -476,8 +478,7 @@ proto = {
throwFail: true,
useBrowserConsole: true,
useNativeES5: true,
win: win,
global: Function('return this')()
win: win
};

//Register the CSS stamp element
Expand Down Expand Up @@ -506,6 +507,25 @@ proto = {

},

/**
This method is called after all other configuration has been applied to
the YUI instance.
@method _afterConfig
@private
**/
_afterConfig: function () {
var Y = this;

// We need to set up Y.config.global after the rest of the configuration
// so that setting it in user configuration prevents the library from
// using eval(). This is critical for Content Security Policy enabled
// sites and other environments like Chrome extensions
if (!Y.config.hasOwnProperty('global')) {
Y.config.global = Function('return this')();
}
},

/**
Finishes the instance setup. Attaches whatever YUI modules were defined
at the time that this instance was created.
Expand Down
8 changes: 4 additions & 4 deletions build/yui-core/yui-core-min.js

Large diffs are not rendered by default.

24 changes: 22 additions & 2 deletions build/yui-core/yui-core.js
Expand Up @@ -132,6 +132,7 @@ available.

// bind the specified additional modules for this instance
if (!l) {
Y._afterConfig();
Y._setup();
}
}
Expand All @@ -145,6 +146,7 @@ available.
Y.applyConfig(args[i]);
}

Y._afterConfig();
Y._setup();
}

Expand Down Expand Up @@ -476,8 +478,7 @@ proto = {
throwFail: true,
useBrowserConsole: true,
useNativeES5: true,
win: win,
global: Function('return this')()
win: win
};

//Register the CSS stamp element
Expand Down Expand Up @@ -506,6 +507,25 @@ proto = {

},

/**
This method is called after all other configuration has been applied to
the YUI instance.
@method _afterConfig
@private
**/
_afterConfig: function () {
var Y = this;

// We need to set up Y.config.global after the rest of the configuration
// so that setting it in user configuration prevents the library from
// using eval(). This is critical for Content Security Policy enabled
// sites and other environments like Chrome extensions
if (!Y.config.hasOwnProperty('global')) {
Y.config.global = Function('return this')();
}
},

/**
Finishes the instance setup. Attaches whatever YUI modules were defined
at the time that this instance was created.
Expand Down
4 changes: 2 additions & 2 deletions build/yui-nodejs/yui-nodejs-coverage.js

Large diffs are not rendered by default.

24 changes: 22 additions & 2 deletions build/yui-nodejs/yui-nodejs-debug.js
Expand Up @@ -132,6 +132,7 @@ available.

// bind the specified additional modules for this instance
if (!l) {
Y._afterConfig();
Y._setup();
}
}
Expand All @@ -145,6 +146,7 @@ available.
Y.applyConfig(args[i]);
}

Y._afterConfig();
Y._setup();
}

Expand Down Expand Up @@ -476,8 +478,7 @@ proto = {
throwFail: true,
useBrowserConsole: true,
useNativeES5: true,
win: win,
global: Function('return this')()
win: win
};

//Register the CSS stamp element
Expand Down Expand Up @@ -506,6 +507,25 @@ proto = {

},

/**
This method is called after all other configuration has been applied to
the YUI instance.
@method _afterConfig
@private
**/
_afterConfig: function () {
var Y = this;

// We need to set up Y.config.global after the rest of the configuration
// so that setting it in user configuration prevents the library from
// using eval(). This is critical for Content Security Policy enabled
// sites and other environments like Chrome extensions
if (!Y.config.hasOwnProperty('global')) {
Y.config.global = Function('return this')();
}
},

/**
Finishes the instance setup. Attaches whatever YUI modules were defined
at the time that this instance was created.
Expand Down
30 changes: 15 additions & 15 deletions build/yui-nodejs/yui-nodejs-min.js

Large diffs are not rendered by default.

24 changes: 22 additions & 2 deletions build/yui-nodejs/yui-nodejs.js
Expand Up @@ -132,6 +132,7 @@ available.

// bind the specified additional modules for this instance
if (!l) {
Y._afterConfig();
Y._setup();
}
}
Expand All @@ -145,6 +146,7 @@ available.
Y.applyConfig(args[i]);
}

Y._afterConfig();
Y._setup();
}

Expand Down Expand Up @@ -476,8 +478,7 @@ proto = {
throwFail: true,
useBrowserConsole: true,
useNativeES5: true,
win: win,
global: Function('return this')()
win: win
};

//Register the CSS stamp element
Expand Down Expand Up @@ -506,6 +507,25 @@ proto = {

},

/**
This method is called after all other configuration has been applied to
the YUI instance.
@method _afterConfig
@private
**/
_afterConfig: function () {
var Y = this;

// We need to set up Y.config.global after the rest of the configuration
// so that setting it in user configuration prevents the library from
// using eval(). This is critical for Content Security Policy enabled
// sites and other environments like Chrome extensions
if (!Y.config.hasOwnProperty('global')) {
Y.config.global = Function('return this')();
}
},

/**
Finishes the instance setup. Attaches whatever YUI modules were defined
at the time that this instance was created.
Expand Down
4 changes: 2 additions & 2 deletions build/yui/yui-coverage.js

Large diffs are not rendered by default.

24 changes: 22 additions & 2 deletions build/yui/yui-debug.js
Expand Up @@ -132,6 +132,7 @@ available.

// bind the specified additional modules for this instance
if (!l) {
Y._afterConfig();
Y._setup();
}
}
Expand All @@ -145,6 +146,7 @@ available.
Y.applyConfig(args[i]);
}

Y._afterConfig();
Y._setup();
}

Expand Down Expand Up @@ -476,8 +478,7 @@ proto = {
throwFail: true,
useBrowserConsole: true,
useNativeES5: true,
win: win,
global: Function('return this')()
win: win
};

//Register the CSS stamp element
Expand Down Expand Up @@ -506,6 +507,25 @@ proto = {

},

/**
This method is called after all other configuration has been applied to
the YUI instance.
@method _afterConfig
@private
**/
_afterConfig: function () {
var Y = this;

// We need to set up Y.config.global after the rest of the configuration
// so that setting it in user configuration prevents the library from
// using eval(). This is critical for Content Security Policy enabled
// sites and other environments like Chrome extensions
if (!Y.config.hasOwnProperty('global')) {
Y.config.global = Function('return this')();
}
},

/**
Finishes the instance setup. Attaches whatever YUI modules were defined
at the time that this instance was created.
Expand Down

0 comments on commit 4281409

Please sign in to comment.