details: /erp/devel/pi/rev/d4f817fd52c4
changeset: 12344:d4f817fd52c4
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Mon May 23 11:21:48 2011 +0200
summary: Upgrade LABjs to 1.2.0
diffstat:
modules/org.openbravo.client.kernel/web/org.openbravo.client.kernel/js/LAB.min.js
| 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (13 lines):
diff -r f0e78faa017e -r d4f817fd52c4
modules/org.openbravo.client.kernel/web/org.openbravo.client.kernel/js/LAB.min.js
---
a/modules/org.openbravo.client.kernel/web/org.openbravo.client.kernel/js/LAB.min.js
Mon May 23 10:57:22 2011 +0200
+++
b/modules/org.openbravo.client.kernel/web/org.openbravo.client.kernel/js/LAB.min.js
Mon May 23 11:21:48 2011 +0200
@@ -1,5 +1,5 @@
/*! LAB.js (LABjs :: Loading And Blocking JavaScript)
- v1.0.4 (c) Kyle Simpson
+ v1.2.0 (c) Kyle Simpson
MIT License
*/
-(function(p){var
q="string",w="head",H="body",I="script",t="readyState",j="preloaddone",x="loadtrigger",J="srcuri",C="preload",Z="complete",y="done",z="which",K="preserve",D="onreadystatechange",ba="onload",L="hasOwnProperty",bb="script/cache",M="[object
",bw=M+"Function]",bx=M+"Array]",e=null,h=true,i=false,k=p.document,by=p.location,bc=p.ActiveXObject,A=p.setTimeout,bd=p.clearTimeout,N=function(a){return
k.getElementsByTagName(a)},O=Object.prototype.toString,P=function(){},r={},Q={},be=/^[^?#]*\//.exec(by.href)[0],bf=/^\w+\:\/\/\/?[^\/]+/.exec(be)[0],bz=N(I),bg=p.opera&&O.call(p.opera)==M+"Opera]",bh=("MozAppearance"in
k.documentElement.style),bi=(k.createElement(I).async===true),u={cache:!(bh||bg),order:bh||bg||bi,xhr:h,dupe:h,base:"",which:w};u[K]=i;u[C]=h;r[w]=k.head||N(w);r[H]=N(H);function
R(a){return O.call(a)===bw}function S(a,b){var c=/^\w+\:\/\//,d;if(typeof
a!=q)a="";if(typeof
b!=q)b="";d=(c.test(a)?"":b)+a;return((c.test(d)?"":(d.charAt(0)==="/"?bf:be))+d)}function
bA(a){return(S(a).indexOf(bf)===0)}function bB(a){var
b,c=-1;while(b=bz[++c]){if(typeof b.src==q&&a===S(b.src)&&b.type!==bb)return
h}return i}function E(v,l){v=!(!v);if(l==e)l=u;var
bj=i,B=v&&l[C],bk=B&&l.cache,F=B&&l.order,bl=B&&l.xhr,bC=l[K],bD=l.which,bE=l.base,bm=P,T=i,G,s=h,m={},U=[],V=e;B=bk||bl||F;function
bn(a,b){if((a[t]&&a[t]!==Z&&a[t]!=="loaded")||b[y]){return
i}a[ba]=a[D]=e;return h}function
W(a,b,c){c=!(!c);if(!c&&!(bn(a,b)))return;b[y]=h;for(var d in
m){if(m[L](d)&&!(m[d][y]))return}bj=h;bm()}function
bo(a){if(R(a[x])){a[x]();a[x]=e}}function
bF(a,b){if(!bn(a,b))return;b[j]=h;A(function(){r[b[z]].removeChild(a);bo(b)},0)}function
bG(a,b){if(a[t]===4){a[D]=P;b[j]=h;A(function(){bo(b)},0)}}function
X(b,c,d,g,f,n){var o=b[z];A(function(){if("item"in
r[o]){if(!r[o][0]){A(arguments.callee,25);return}r[o]=r[o][0]}var
a=k.createElement(I);if(typeof d==q)a.type=d;if(typeof
g==q)a.charset=g;if(R(f)){a[ba]=a[D]=function(){f(a,b)};a.src=c;if(bi){a.async=i}}r[o].insertBefore(a,(o===w?r[o].firstChild:e));if(typeof
n==q){a.text=n;W(a,b,h)}},0)}function
bp(a,b,c,d){Q[a[J]]=h;X(a,b,c,d,W)}function bq(a,b,c,d){var
g=arguments;if(s&&a[j]==e){a[j]=i;X(a,b,bb,d,bF)}else
if(!s&&a[j]!=e&&!a[j]){a[x]=function(){bq.apply(e,g)}}else
if(!s){bp.apply(e,g)}}function br(a,b,c,d){var
g=arguments,f;if(s&&a[j]==e){a[j]=i;f=a.xhr=(bc?new bc("Microsoft.XMLHTTP"):new
p.XMLHttpRequest());f[D]=function(){bG(f,a)};f.open("GET",b);f.send("")}else
if(!s&&a[j]!=e&&!a[j]){a[x]=function(){br.apply(e,g)}}else
if(!s){Q[a[J]]=h;X(a,b,c,d,e,a.xhr.responseText);a.xhr=e}}function
bs(a){if(a.allowDup==e)a.allowDup=l.dupe;var
b=a.src,c=a.type,d=a.charset,g=a.allowDup,f=S(b,bE),n,o=bA(f);if(typeof
d!=q)d=e;g=!(!g);if(!g&&((Q[f]!=e)||(s&&m[f])||bB(f))){if(m[f]!=e&&m[f][j]&&!m[f][y]&&o){W(e,m[f],h)}return}if(m[f]==e)m[f]={};n=m[f];if(n[z]==e)n[z]=bD;n[y]=i;n[J]=f;T=h;if(!F&&bl&&o)br(n,f,c,d);else
if(!F&&bk)bq(n,f,c,d);else bp(n,f,c,d)}function bt(a){U.push(a)}function
Y(a){if(v&&!F)bt(a);if(!v||B)a()}function bu(a){var
b=[],c;for(c=-1;++c<a.length;){if(O.call(a[c])===bx)b=b.concat(bu(a[c]));else
b[b.length]=a[c]}return b}G={script:function(){bd(V);var
a=bu(arguments),b=G,c;if(bC){for(c=-1;++c<a.length;){if(c===0){Y(function(){bs((typeof
a[0]==q)?{src:a[0]}:a[0])})}else
b=b.script(a[c]);b=b.wait()}}else{Y(function(){for(c=-1;++c<a.length;){bs((typeof
a[c]==q)?{src:a[c]}:a[c])}})}V=A(function(){s=i},5);return
b},wait:function(a){bd(V);s=i;if(!R(a))a=P;var
b=E(h,l),c=b.trigger,d=function(){try{a()}catch(err){}c()};delete b.trigger;var
g=function(){if(T&&!bj)bm=d;else d()};if(v&&!T)bt(g);else Y(g);return
b}};if(v){G.trigger=function(){var a,b=-1;while(a=U[++b])a();U=[]}}return
G}function bv(a){var
b,c={},d={"UseCachePreload":"cache","UseLocalXHR":"xhr","UsePreloading":C,"AlwaysPreserveOrder":K,"AllowDuplicates":"dupe"},g={"AppendTo":z,"BasePath":"base"};for(b
in d)g[b]=d[b];c.order=!(!u.order);for(b in
g){if(g[L](b)&&u[g[b]]!=e)c[g[b]]=(a[b]!=e)?a[b]:u[g[b]]}for(b in
d){if(d[L](b))c[d[b]]=!(!c[d[b]])}if(!c[C])c.cache=c.order=c.xhr=i;c.which=(c.which===w||c.which===H)?c.which:w;return
c}p.$LAB={setGlobalDefaults:function(a){u=bv(a)},setOptions:function(a){return
E(i,bv(a))},script:function(){return
E().script.apply(e,arguments)},wait:function(){return
E().wait.apply(e,arguments)}};(function(a,b,c){if(k[t]==e&&k[a]){k[t]="loading";k[a](b,c=function(){k.removeEventListener(b,c,i);k[t]=Z},i)}})("addEventListener","DOMContentLoaded")})(window);
\ No newline at end of file
+(function(p){var
q="string",w="head",L="body",M="script",u="readyState",j="preloaddone",x="loadtrigger",N="srcuri",E="preload",Z="complete",y="done",z="which",O="preserve",F="onreadystatechange",ba="onload",P="hasOwnProperty",bb="script/cache",Q="[object
",bw=Q+"Function]",bx=Q+"Array]",e=null,h=true,i=false,k=p.document,bc=p.location,bd=p.ActiveXObject,A=p.setTimeout,be=p.clearTimeout,R=function(a){return
k.getElementsByTagName(a)},S=Object.prototype.toString,G=function(){},r={},T={},bf=/^[^?#]*\//.exec(bc.href)[0],bg=/^\w+\:\/\/\/?[^\/]+/.exec(bf)[0],by=R(M),bh=p.opera&&S.call(p.opera)==Q+"Opera]",bi=("MozAppearance"in
k.documentElement.style),bj=(k.createElement(M).async===true),v={cache:!(bi||bh),order:bi||bh||bj,xhr:h,dupe:h,base:"",which:w};v[O]=i;v[E]=h;r[w]=k.head||R(w);r[L]=R(L);function
B(a){return S.call(a)===bw}function U(a,b){var c=/^\w+\:\/\//,d;if(typeof
a!=q)a="";if(typeof
b!=q)b="";d=((/^\/\//.test(a))?bc.protocol:"")+a;d=(c.test(d)?"":b)+d;return((c.test(d)?"":(d.charAt(0)==="/"?bg:bf))+d)}function
bz(a){return(U(a).indexOf(bg)===0)}function bA(a){var
b,c=-1;while(b=by[++c]){if(typeof b.src==q&&a===U(b.src)&&b.type!==bb)return
h}return i}function H(t,l){t=!(!t);if(l==e)l=v;var
bk=i,C=t&&l[E],bl=C&&l.cache,I=C&&l.order,bm=C&&l.xhr,bB=l[O],bC=l.which,bD=l.base,bn=G,J=i,D,s=h,m={},K=[],V=e;C=bl||bm||I;function
bo(a,b){if((a[u]&&a[u]!==Z&&a[u]!=="loaded")||b[y]){return
i}a[ba]=a[F]=e;return h}function
W(a,b,c){c=!(!c);if(!c&&!(bo(a,b)))return;b[y]=h;for(var d in
m){if(m[P](d)&&!(m[d][y]))return}bk=h;bn()}function
bp(a){if(B(a[x])){a[x]();a[x]=e}}function
bE(a,b){if(!bo(a,b))return;b[j]=h;A(function(){r[b[z]].removeChild(a);bp(b)},0)}function
bF(a,b){if(a[u]===4){a[F]=G;b[j]=h;A(function(){bp(b)},0)}}function
X(b,c,d,g,f,n){var o=b[z];A(function(){if("item"in
r[o]){if(!r[o][0]){A(arguments.callee,25);return}r[o]=r[o][0]}var
a=k.createElement(M);if(typeof d==q)a.type=d;if(typeof
g==q)a.charset=g;if(B(f)){a[ba]=a[F]=function(){f(a,b)};a.src=c;if(bj){a.async=i}}r[o].insertBefore(a,(o===w?r[o].firstChild:e));if(typeof
n==q){a.text=n;W(a,b,h)}},0)}function
bq(a,b,c,d){T[a[N]]=h;X(a,b,c,d,W)}function br(a,b,c,d){var
g=arguments;if(s&&a[j]==e){a[j]=i;X(a,b,bb,d,bE)}else
if(!s&&a[j]!=e&&!a[j]){a[x]=function(){br.apply(e,g)}}else
if(!s){bq.apply(e,g)}}function bs(a,b,c,d){var
g=arguments,f;if(s&&a[j]==e){a[j]=i;f=a.xhr=(bd?new bd("Microsoft.XMLHTTP"):new
p.XMLHttpRequest());f[F]=function(){bF(f,a)};f.open("GET",b);f.send("")}else
if(!s&&a[j]!=e&&!a[j]){a[x]=function(){bs.apply(e,g)}}else
if(!s){T[a[N]]=h;X(a,b,c,d,e,a.xhr.responseText);a.xhr=e}}function
bt(a){if(typeof
a=="undefined"||!a)return;if(a.allowDup==e)a.allowDup=l.dupe;var
b=a.src,c=a.type,d=a.charset,g=a.allowDup,f=U(b,bD),n,o=bz(f);if(typeof
d!=q)d=e;g=!(!g);if(!g&&((T[f]!=e)||(s&&m[f])||bA(f))){if(m[f]!=e&&m[f][j]&&!m[f][y]&&o){W(e,m[f],h)}return}if(m[f]==e)m[f]={};n=m[f];if(n[z]==e)n[z]=bC;n[y]=i;n[N]=f;J=h;if(!I&&bm&&o)bs(n,f,c,d);else
if(!I&&bl)br(n,f,c,d);else bq(n,f,c,d)}function
Y(a){if(t&&!I)K.push(a);if(!t||C)a()}function bu(a){var
b=[],c;for(c=-1;++c<a.length;){if(S.call(a[c])===bx)b=b.concat(bu(a[c]));else
b[b.length]=a[c]}return b}D={script:function(){be(V);var
a=bu(arguments),b=D,c;if(bB){for(c=-1;++c<a.length;){if(B(a[c]))a[c]=a[c]();if(c===0){Y(function(){bt((typeof
a[0]==q)?{src:a[0]}:a[0])})}else
b=b.script(a[c]);b=b.wait()}}else{for(c=-1;++c<a.length;){if(B(a[c]))a[c]=a[c]()}Y(function(){for(c=-1;++c<a.length;){bt((typeof
a[c]==q)?{src:a[c]}:a[c])}})}V=A(function(){s=i},5);return
b},wait:function(a){be(V);s=i;if(!B(a))a=G;var
b=H(t||J,l),c=b.trigger,d=function(){try{a()}catch(err){}c()};delete
b.trigger;var g=function(){if(J&&!bk)bn=d;else d()};if(t&&!J)K.push(g);else
Y(g);return b}};if(t){D.trigger=function(){var
a,b=-1;while(a=K[++b])a();K=[]}}else D.trigger=G;return D}function bv(a){var
b,c={},d={"UseCachePreload":"cache","UseLocalXHR":"xhr","UsePreloading":E,"AlwaysPreserveOrder":O,"AllowDuplicates":"dupe"},g={"AppendTo":z,"BasePath":"base"};for(b
in d)g[b]=d[b];c.order=!(!v.order);for(b in
g){if(g[P](b)&&v[g[b]]!=e)c[g[b]]=(a[b]!=e)?a[b]:v[g[b]]}for(b in
d){if(d[P](b))c[d[b]]=!(!c[d[b]])}if(!c[E])c.cache=c.order=c.xhr=i;c.which=(c.which===w||c.which===L)?c.which:w;return
c}p.$LAB={setGlobalDefaults:function(a){v=bv(a)},setOptions:function(a){return
H(i,bv(a))},script:function(){return
H().script.apply(e,arguments)},wait:function(){return
H().wait.apply(e,arguments)}};(function(a,b,c){if(k[u]==e&&k[a]){k[u]="loading";k[a](b,c=function(){k.removeEventListener(b,c,i);k[u]=Z},i)}})("addEventListener","DOMContentLoaded")})(window);
\ No newline at end of file
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits