From 96ea8ab00eabde8042c1efdc97fb70b9e9dea3f7 Mon Sep 17 00:00:00 2001 From: Adam Moore Date: Wed, 2 Dec 2009 00:39:49 -0800 Subject: [PATCH] 'base' detection tests node src attribute before using it [fixes #2528425]. bootstrapped loader file uses same filter as the yui file. [fixes #2528208]. --- build/yui/yui-base-debug.js | 44 +++++++++++++++++++++---------------- build/yui/yui-base-min.js | 4 ++-- build/yui/yui-base.js | 44 +++++++++++++++++++++---------------- build/yui/yui-debug.js | 44 +++++++++++++++++++++---------------- build/yui/yui-min.js | 6 ++--- build/yui/yui.js | 44 +++++++++++++++++++++---------------- src/yui/js/yui.js | 44 +++++++++++++++++++++---------------- 7 files changed, 130 insertions(+), 100 deletions(-) diff --git a/build/yui/yui-base-debug.js b/build/yui/yui-base-debug.js index 30cb49bc242..daaf5b7bcc4 100644 --- a/build/yui/yui-base-debug.js +++ b/build/yui/yui-base-debug.js @@ -138,7 +138,7 @@ YUI.prototype = { // find targeted window/frame // @TODO create facades - var v = '@VERSION@', Y = this; + var v = '@VERSION@', Y = this, filter; if (v.indexOf('@') > -1) { v = 'test'; @@ -190,27 +190,33 @@ YUI.prototype = { for (i=0; i-1){J="test";}K.version=J;K.Env={mods:{},cdn:"http://yui.yahooapis.com/"+J+"/build/",bootstrapped:false,_idx:0,_used:{},_attached:{},_yidx:0,_uidx:0,_loaded:{}};K.Env._loaded[J]={};if(YUI.Env){K.Env._yidx=(++YUI.Env._yidx);K.Env._guidp=("yui_"+J+"-"+K.Env._yidx+"-"+B).replace(/\./g,"_");K.id=K.stamp(K);I[K.id]=K;}K.constructor=YUI;K.config={win:window||{},doc:document,debug:true,useBrowserConsole:true,throwFail:true,bootstrap:true,fetchCSS:true,base:(K===YUI)?K.Env.cdn:function(){var L,M,O,P,N;M=document.getElementsByTagName("script");for(O=0;O1)){F=2;}}catch(G){}}}return F;};E.each=(D.forEach)?function(F,G,H){D.forEach.call(F||[],G,H||B);return B;}:function(G,I,J){var F=(G&&G.length)||0,H;for(H=0;HI)?G[I]:true;}return K;};E.indexOf=(D.indexOf)?function(F,G){return D.indexOf.call(F,G);}:function(F,H){for(var G=0;G-1);};E.owns=function(G,F){return(G.hasOwnProperty(F));};E.each=function(J,I,K,H){var G=K||B,F;for(F in J){if(H||J.hasOwnProperty(F)){I.call(G,J[F],F,J);}}return B;};E.some=function(J,I,K,H){var G=K||B,F;for(F in J){if(H||J.hasOwnProperty(F)){if(I.call(G,J[F],F,J)){return true;}}}return false;};E.getValue=function(J,I){if(!B.Lang.isObject(J)){return D;}var H=B.Array(I),F=H.length,G;for(G=0;J!==D&&G=0){for(F=0;G!==D&&F-1){J="test";}L.version=J;L.Env={mods:{},cdn:"http://yui.yahooapis.com/"+J+"/build/",bootstrapped:false,_idx:0,_used:{},_attached:{},_yidx:0,_uidx:0,_loaded:{}};L.Env._loaded[J]={};if(YUI.Env){L.Env._yidx=(++YUI.Env._yidx);L.Env._guidp=("yui_"+J+"-"+L.Env._yidx+"-"+B).replace(/\./g,"_");L.id=L.stamp(L);I[L.id]=L;}L.constructor=YUI;L.config={win:window||{},doc:document,debug:true,useBrowserConsole:true,throwFail:true,bootstrap:true,fetchCSS:true,base:(L===YUI)?L.Env.cdn:function(){var M,N,P,Q,O;N=document.getElementsByTagName("script");for(P=0;P1)){F=2;}}catch(G){}}}return F;};E.each=(D.forEach)?function(F,G,H){D.forEach.call(F||[],G,H||B);return B;}:function(G,I,J){var F=(G&&G.length)||0,H;for(H=0;HI)?G[I]:true;}return K;};E.indexOf=(D.indexOf)?function(F,G){return D.indexOf.call(F,G);}:function(F,H){for(var G=0;G-1);};E.owns=function(G,F){return(G.hasOwnProperty(F));};E.each=function(J,I,K,H){var G=K||B,F;for(F in J){if(H||J.hasOwnProperty(F)){I.call(G,J[F],F,J);}}return B;};E.some=function(J,I,K,H){var G=K||B,F;for(F in J){if(H||J.hasOwnProperty(F)){if(I.call(G,J[F],F,J)){return true;}}}return false;};E.getValue=function(J,I){if(!B.Lang.isObject(J)){return D;}var H=B.Array(I),F=H.length,G;for(G=0;J!==D&&G=0){for(F=0;G!==D&&F -1) { v = 'test'; @@ -190,27 +190,33 @@ YUI.prototype = { for (i=0; i -1) { v = 'test'; @@ -190,27 +190,33 @@ YUI.prototype = { for (i=0; i-1){J="test";}K.version=J;K.Env={mods:{},cdn:"http://yui.yahooapis.com/"+J+"/build/",bootstrapped:false,_idx:0,_used:{},_attached:{},_yidx:0,_uidx:0,_loaded:{}};K.Env._loaded[J]={};if(YUI.Env){K.Env._yidx=(++YUI.Env._yidx);K.Env._guidp=("yui_"+J+"-"+K.Env._yidx+"-"+B).replace(/\./g,"_");K.id=K.stamp(K);I[K.id]=K;}K.constructor=YUI;K.config={win:window||{},doc:document,debug:true,useBrowserConsole:true,throwFail:true,bootstrap:true,fetchCSS:true,base:(K===YUI)?K.Env.cdn:function(){var L,M,O,P,N;M=document.getElementsByTagName("script");for(O=0;O1)){F=2;}}catch(G){}}}return F;};E.each=(D.forEach)?function(F,G,H){D.forEach.call(F||[],G,H||B);return B;}:function(G,I,J){var F=(G&&G.length)||0,H;for(H=0;HI)?G[I]:true;}return K;};E.indexOf=(D.indexOf)?function(F,G){return D.indexOf.call(F,G);}:function(F,H){for(var G=0;G-1);};E.owns=function(G,F){return(G.hasOwnProperty(F));};E.each=function(J,I,K,H){var G=K||B,F;for(F in J){if(H||J.hasOwnProperty(F)){I.call(G,J[F],F,J);}}return B;};E.some=function(J,I,K,H){var G=K||B,F;for(F in J){if(H||J.hasOwnProperty(F)){if(I.call(G,J[F],F,J)){return true;}}}return false;};E.getValue=function(J,I){if(!B.Lang.isObject(J)){return D;}var H=B.Array(I),F=H.length,G;for(G=0;J!==D&&G=0){for(F=0;G!==D&&F-1){J="test";}L.version=J;L.Env={mods:{},cdn:"http://yui.yahooapis.com/"+J+"/build/",bootstrapped:false,_idx:0,_used:{},_attached:{},_yidx:0,_uidx:0,_loaded:{}};L.Env._loaded[J]={};if(YUI.Env){L.Env._yidx=(++YUI.Env._yidx);L.Env._guidp=("yui_"+J+"-"+L.Env._yidx+"-"+B).replace(/\./g,"_");L.id=L.stamp(L);I[L.id]=L;}L.constructor=YUI;L.config={win:window||{},doc:document,debug:true,useBrowserConsole:true,throwFail:true,bootstrap:true,fetchCSS:true,base:(L===YUI)?L.Env.cdn:function(){var M,N,P,Q,O;N=document.getElementsByTagName("script");for(P=0;P1)){F=2;}}catch(G){}}}return F;};E.each=(D.forEach)?function(F,G,H){D.forEach.call(F||[],G,H||B);return B;}:function(G,I,J){var F=(G&&G.length)||0,H;for(H=0;HI)?G[I]:true;}return K;};E.indexOf=(D.indexOf)?function(F,G){return D.indexOf.call(F,G);}:function(F,H){for(var G=0;G-1);};E.owns=function(G,F){return(G.hasOwnProperty(F));};E.each=function(J,I,K,H){var G=K||B,F;for(F in J){if(H||J.hasOwnProperty(F)){I.call(G,J[F],F,J);}}return B;};E.some=function(J,I,K,H){var G=K||B,F;for(F in J){if(H||J.hasOwnProperty(F)){if(I.call(G,J[F],F,J)){return true;}}}return false;};E.getValue=function(J,I){if(!B.Lang.isObject(J)){return D;}var H=B.Array(I),F=H.length,G;for(G=0;J!==D&&G=0){for(F=0;G!==D&&F -1) { v = 'test'; @@ -190,27 +190,33 @@ YUI.prototype = { for (i=0; i -1) { v = 'test'; @@ -190,27 +190,33 @@ YUI.prototype = { for (i=0; i