Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bumped to 0.5.3

  • Loading branch information...
commit d8406ebd0134e8975d08e6ec4158579ab99e81ef 1 parent 5cd76df
unscriptable authored
View
8 README.md
@@ -1,10 +1,12 @@
curl (cujo resource loader)
=====================
-version 0.5.2
+version 0.5.3
What's New?
+* 0.5.3
+ * fix to js! plugin (now works without !order option)
* 0.5.2
* better CDN support!
* protocol-relative urls fixed
@@ -34,10 +36,6 @@ What's New?
`apiName` config param to "require"
* configuration parameters for plugins are now defined in a sub-object
of the main config object: { css: { cssOption: true } }
-* earlier:
- * Fixed !order option for js! plugin in non-Firefox browsers (0.4.3)
- * Fixed the compiled version in 0.4.2 (dist/ folder)
- * Several fixes to path and package mapping were made in 0.4.1
TODO:
View
2  dist/curl-for-dojo1.6/curl.js
@@ -9,7 +9,7 @@ d);i=a.substr(d+1);var h=p(g);h.indexOf("/")<0&&(h=p((!w||r(w)?w:w+"/")+h));var
f.a)}else if(i=e=A(a,b.baseName),f=n[i],!f)f=n[i]=new q(i),f.url=G(p(i),B,!0),Q(f);return f}function P(a,b,e,d){for(var g=[],i=a.length,f=i,h=!1,c=0;c<f&&!h;c++)(function(a,f){f in b.d?(g[a]=b.d[f],i--):$(f,b).c(function(b){g[a]=b;--i==0&&(h=!0,e(g))},function(a){h=!0;d(a)})})(c,a[c]);i==0&&!h&&e(g)}function T(a,b,e){if(f(a,"String")){e=(e=n[a])&&e.l;if(e===H)throw Error("Module is not already resolved: "+a);return e}P(a,e,function(a){b.b?b.b(a):b.apply(t,a)},function(a){if(b.a)b.a(a);else throw a;
})}function s(){var a=aa.call(arguments),b,e;f(a[0],"Object")&&(l=a.shift(),o(l));b=[].concat(a[0]);a=a[1];e=j("");var d=new z,g={};g.then=function(a,b){d.c(function(b){a&&a.apply(t,b)},function(a){if(b)b(a);else throw a;});return g};g.next=function(a,b){var f=d;d=new z;f.c(function(){e.e(a,d,e)},function(a){d.a(a)});b&&d.c(function(a){b.apply(this,a)});return g};a&&g.then(a);e.e(b,d,e);return g}function R(){var a=Y(arguments),b=a.name;if(b==t)if(D!==H)D={g:"Multiple anonymous defines found in ${url}."};
else{var e;if(!f(c.opera,"Opera"))for(var d in I)if(I[d].readyState=="interactive"){e=d;break}if(!(b=e))D=a}if(b!=t)(e=n[b])||(e=n[b]=new q(b)),e.m=!1,"resolved"in e||O(e,a,j(b))}var N=h.head||h.getElementsByTagName("head")[0],B,w="curl/plugin",C={},n={},D,I={},S={}.toString,H,aa=[].slice,U=/^\/|^[^:]+:\/\//,Z=/^(\.)(\.)?(\/|$)/,K=/\//,V=/\?/,L,X={loaded:1,interactive:1,complete:1},M="onreadystatechange";k="./lib/main";m="./lib";var F;f(l,"Function")||o(l);var E;E=l.apiName||"curl";(l.apiContext||
-c)[E]=s;n[E]=new q(E);n[E].b(s);c.define=s.define=R;s.version="0.5.3dev";R.amd={plugins:!0}})(this,document,this.curl||{});
+c)[E]=s;n[E]=new q(E);n[E].b(s);c.define=s.define=R;s.version="0.5.3";R.amd={plugins:!0}})(this,document,this.curl||{});
(function(c,h){function l(){if(!h.body)return!1;p||(p=h.createTextNode(""));try{return h.body.removeChild(h.body.appendChild(p)),p=u,!0}catch(f){return!1}}function k(){var c;c=J[h[f]]&&l();if(!j&&c){j=!0;for(clearTimeout(r);z=q.pop();)z();v&&(h[f]="complete");for(var m;m=o.shift();)m()}return c}function m(){k();j||(r=setTimeout(m,x))}var f="readyState",J={loaded:1,interactive:1,complete:1},o=[],v=typeof h[f]!="string",j=!1,x=10,y,z,q=[],r,u,p;y="addEventListener"in c?function(f,c){f.addEventListener(c,
k,!1);return function(){f.removeEventListener(c,k,!1)}}:function(f,c){f.attachEvent("on"+c,k);return function(){f.detachEvent(c,k)}};h&&!k()&&(q=[y(c,"load"),y(h,"readystatechange"),y(c,"DOMContentLoaded")],r=setTimeout(m,x));define("curl/domReady",function(){function f(c){j?c():o.push(c)}f.then=f;f.amd=!0;return f})})(this,document);
(function(c){define("curl/dojo16Compat",["./domReady"],function(h){function l(c){c.ready||(c.ready=function(f){h(f)});c.nameToUrl||(c.nameToUrl=function(f,h){return c.toUrl(f+(h||""))});return c}var k=c.define;l(c.curl||c.require);c.define=function(){var c,f,h,o=[],v,j;c=[].slice.call(arguments);f=c.length;h=c[f-2];v=typeof c[f-1]=="function"?c[f-1]:t;if(h&&v){for(j=h.length-1;j>=0;j--)h[j]=="require"&&o.push(j);o.length>0&&(c[f-1]=function(){var c=[].slice.call(arguments);for(j=0;j<o.length;j++)c[o[j]]=
View
2  dist/curl-for-jQuery/curl.js
@@ -9,7 +9,7 @@ e);i=a.substr(e+1);var g=o(j);g.indexOf("/")<0&&(g=o((!A||v(A)?A:A+"/")+g));var
c.a)}else if(i=f=D(a,b.baseName),c=s[i],!c)c=s[i]=new t(i),c.url=m(o(i),E,!0),R(c);return c}function Q(a,b,f,e){for(var c=[],i=a.length,d=i,g=!1,m=0;m<d&&!g;m++)(function(a,d){d in b.d?(c[a]=b.d[d],i--):$(d,b).c(function(b){c[a]=b;--i==0&&(g=!0,f(c))},function(a){g=!0;e(a)})})(m,a[m]);i==0&&!g&&f(c)}function U(a,b,f){if(q(a,"String")){f=(f=s[a])&&f.n;if(f===J)throw Error("Module is not already resolved: "+a);return f}Q(a,f,function(a){b.b?b.b(a):b.apply(z,a)},function(a){if(b.a)b.a(a);else throw a;
})}function x(){var a=aa.call(arguments),b,f;q(a[0],"Object")&&(p=a.shift(),n(p));b=[].concat(a[0]);a=a[1];f=u("");var e=new B,c={};c.then=function(a,b){e.c(function(b){a&&a.apply(z,b)},function(a){if(b)b(a);else throw a;});return c};c.next=function(a,b){var d=e;e=new B;d.c(function(){f.e(a,e,f)},function(a){e.a(a)});b&&e.c(function(a){b.apply(this,a)});return c};a&&c.then(a);f.e(b,e,f);return c}function S(){var a=Y(arguments),b=a.name;if(b==z)if(G!==J)G={g:"Multiple anonymous defines found in ${url}."};
else{var c;if(!q(r.opera,"Opera"))for(var e in K)if(K[e].readyState=="interactive"){c=e;break}if(!(b=c))G=a}if(b!=z)(c=s[b])||(c=s[b]=new t(b)),c.o=!1,"resolved"in c||P(c,a,u(b))}var O=h.head||h.getElementsByTagName("head")[0],E,A="curl/plugin",F={},s={},G,K={},T={}.toString,J,aa=[].slice,V=/^\/|^[^:]+:\/\//,Z=/^(\.)(\.)?(\/|$)/,L=/\//,W=/\?/,M,X={loaded:1,interactive:1,complete:1},N="onreadystatechange";l="./lib/main";g="./lib";var I;q(p,"Function")||n(p);var H;H=p.apiName||"curl";(p.apiContext||
-r)[H]=x;s[H]=new t(H);s[H].b(x);r.define=x.define=S;x.version="0.5.3dev";S.amd={plugins:!0}})(this,document,this.curl||{});
+r)[H]=x;s[H]=new t(H);s[H].b(x);r.define=x.define=S;x.version="0.5.3";S.amd={plugins:!0}})(this,document,this.curl||{});
(function(r,h){function p(){if(!h.body)return!1;o||(o=h.createTextNode(""));try{return h.body.removeChild(h.body.appendChild(o)),o=k,!0}catch(d){return!1}}function l(){var d;d=C[h[q]]&&p();if(!u&&d){u=!0;for(clearTimeout(v);B=t.pop();)B();y&&(h[q]="complete");for(var c;c=n.shift();)c()}return d}function g(){l();u||(v=setTimeout(g,w))}var q="readyState",C={loaded:1,interactive:1,complete:1},n=[],y=typeof h[q]!="string",u=!1,w=10,d,B,t=[],v,k,o;d="addEventListener"in r?function(d,c){d.addEventListener(c,
l,!1);return function(){d.removeEventListener(c,l,!1)}}:function(d,c){d.attachEvent("on"+c,l);return function(){d.detachEvent(c,l)}};h&&!l()&&(t=[d(r,"load"),d(h,"readystatechange"),d(r,"DOMContentLoaded")],v=setTimeout(g,w));define("curl/domReady",function(){function d(c){u?c():n.push(c)}d.then=d;d.amd=!0;return d})})(this,document);
(function(r,h){function p(d,l,t){function v(h){h=h||r.event;if(h.type=="load"||n[c.readyState])c.onload=c[y]=c.onerror="",!d.test||g(d.test)?l(c):k()}function k(){c.onload=c[y]=c.onerror="";t&&t(Error("Script error or http error: "+d.url))}function o(){c.onload&&n[c.readyState]?v({}):c.onload&&m<new Date?k():setTimeout(o,10)}var m,c;m=(new Date).valueOf()+(d.timeout||300)*1E3;c=h.createElement("script");t&&d.test&&setTimeout(o,10);c.type=d.j||"text/javascript";c.onload=c[y]=v;c.onerror=k;c.charset=
View
2  dist/curl-kitchen-sink/curl.js
@@ -9,7 +9,7 @@ p,f,e,c,q;p=b.indexOf("!");if(p>=0){f=b.substr(0,p);e=b.substr(p+1);var n=o(f);n
i;i.reject=k.a;a.load(e,d.f,i,q)}k.c(c.b,c.a)},c.a)}else if(e=g=D(b,d.baseName),c=z[e],!c)c=z[e]=new s(e),c.url=I(o(e),k,!0),x(c);return c}function J(b,d,g,a){for(var k=[],e=b.length,i=e,f=!1,E=0;E<i&&!f;E++)(function(b,i){i in d.d?(k[b]=d.d[i],e--):P(i,d).c(function(d){k[b]=d;--e==0&&(f=!0,g(k))},function(b){f=!0;a(b)})})(E,b[E]);e==0&&!f&&g(k)}function H(b,d,g){if(f(b,"String")){g=(g=z[b])&&g.p;if(g===A)throw Error("Module is not already resolved: "+b);return g}J(b,g,function(b){d.b?d.b(b):d.apply(B,
b)},function(b){if(d.a)d.a(b);else throw b;})}function v(){var b=Z.call(arguments),d,g;f(b[0],"Object")&&(l=b.shift(),r(l));d=[].concat(b[0]);b=b[1];g=a("");var k=new G,e={};e.then=function(b,d){k.c(function(d){b&&b.apply(B,d)},function(b){if(d)d(b);else throw b;});return e};e.next=function(b,d){var a=k;k=new G;a.c(function(){g.f(b,k,g)},function(b){k.a(b)});d&&k.c(function(b){d.apply(this,b)});return e};b&&e.then(b);g.f(d,k,g);return e}function d(){var b=Q(arguments),d=b.name;if(d==B)if(K!==A)K=
{h:"Multiple anonymous defines found in ${url}."};else{var g;if(!f(c.opera,"Opera"))for(var k in N)if(N[k].readyState=="interactive"){g=k;break}if(!(d=g))K=b}if(d!=B)(g=z[d])||(g=z[d]=new s(d)),g.q=!1,"resolved"in g||O(g,b,a(d))}var g=h.head||h.getElementsByTagName("head")[0],k,E="curl/plugin",C={},z={},K,N={},U={}.toString,A,Z=[].slice,V=/^\/|^[^:]+:\/\//,Y=/^(\.)(\.)?(\/|$)/,R=/\//,W=/\?/,S,X={loaded:1,interactive:1,complete:1},T="onreadystatechange";m="./lib/main";n="./lib";var M;f(l,"Function")||
-r(l);var L;L=l.apiName||"curl";(l.apiContext||c)[L]=v;z[L]=new s(L);z[L].b(v);c.define=v.define=d;v.version="0.5.3dev";d.amd={plugins:!0}})(this,document,this.curl||{});
+r(l);var L;L=l.apiName||"curl";(l.apiContext||c)[L]=v;z[L]=new s(L);z[L].b(v);c.define=v.define=d;v.version="0.5.3";d.amd={plugins:!0}})(this,document,this.curl||{});
(function(c,h){function l(){if(!h.body)return!1;o||(o=h.createTextNode(""));try{return h.body.removeChild(h.body.appendChild(o)),o=F,!0}catch(a){return!1}}function m(){var i;i=q[h[f]]&&l();if(!a&&i){a=!0;for(clearTimeout(y);G=s.pop();)G();w&&(h[f]="complete");for(var e;e=r.shift();)e()}return i}function n(){m();a||(y=setTimeout(n,u))}var f="readyState",q={loaded:1,interactive:1,complete:1},r=[],w=typeof h[f]!="string",a=!1,u=10,i,G,s=[],y,F,o;i="addEventListener"in c?function(a,e){a.addEventListener(e,
m,!1);return function(){a.removeEventListener(e,m,!1)}}:function(a,e){a.attachEvent("on"+e,m);return function(){a.detachEvent(e,m)}};h&&!m()&&(s=[i(c,"load"),i(h,"readystatechange"),i(c,"DOMContentLoaded")],y=setTimeout(n,u));define("curl/domReady",function(){function i(e){a?e():r.push(e)}i.then=i;i.amd=!0;return i})})(this,document);
(function(c){define("curl/dojo16Compat",["./domReady"],function(h){function l(c){c.ready||(c.ready=function(f){h(f)});c.nameToUrl||(c.nameToUrl=function(f,q){return c.toUrl(f+(q||""))});return c}var m=c.define;l(c.curl||c.require);c.define=function(){var c,f,q,h=[],w,a;c=[].slice.call(arguments);f=c.length;q=c[f-2];w=typeof c[f-1]=="function"?c[f-1]:B;if(q&&w){for(a=q.length-1;a>=0;a--)q[a]=="require"&&h.push(a);h.length>0&&(c[f-1]=function(){var c=[].slice.call(arguments);for(a=0;a<h.length;a++)c[h[a]]=
View
2  dist/curl-with-js-and-domReady/curl.js
@@ -9,7 +9,7 @@ e);g=a.substr(e+1);var j=n(h);j.indexOf("/")<0&&(j=n((!B||v(B)?B:B+"/")+j));var
c.a)}else if(g=f=D(a,b.baseName),c=s[g],!c)c=s[g]=new o(g),c.url=k(n(g),E,!0),R(c);return c}function Q(a,b,f,e){for(var c=[],g=a.length,d=g,k=!1,j=0;j<d&&!k;j++)(function(a,d){d in b.d?(c[a]=b.d[d],g--):$(d,b).c(function(b){c[a]=b;--g==0&&(k=!0,f(c))},function(a){k=!0;e(a)})})(j,a[j]);g==0&&!k&&f(c)}function U(a,b,f){if(l(a,"String")){f=(f=s[a])&&f.m;if(f===J)throw Error("Module is not already resolved: "+a);return f}Q(a,f,function(a){b.b?b.b(a):b.apply(A,a)},function(a){if(b.a)b.a(a);else throw a;
})}function x(){var a=aa.call(arguments),b,f;l(a[0],"Object")&&(m=a.shift(),w(m));b=[].concat(a[0]);a=a[1];f=t("");var e=new q,c={};c.then=function(a,b){e.c(function(b){a&&a.apply(A,b)},function(a){if(b)b(a);else throw a;});return c};c.next=function(a,b){var d=e;e=new q;d.c(function(){f.e(a,e,f)},function(a){e.a(a)});b&&e.c(function(a){b.apply(this,a)});return c};a&&c.then(a);f.e(b,e,f);return c}function S(){var a=Y(arguments),b=a.name;if(b==A)if(G!==J)G={g:"Multiple anonymous defines found in ${url}."};
else{var c;if(!l(p.opera,"Opera"))for(var e in K)if(K[e].readyState=="interactive"){c=e;break}if(!(b=c))G=a}if(b!=A)(c=s[b])||(c=s[b]=new o(b)),c.n=!1,"resolved"in c||P(c,a,t(b))}var O=i.head||i.getElementsByTagName("head")[0],E,B="curl/plugin",F={},s={},G,K={},T={}.toString,J,aa=[].slice,V=/^\/|^[^:]+:\/\//,Z=/^(\.)(\.)?(\/|$)/,L=/\//,W=/\?/,M,X={loaded:1,interactive:1,complete:1},N="onreadystatechange";r="./lib/main";y="./lib";var I;l(m,"Function")||w(m);var H;H=m.apiName||"curl";(m.apiContext||
-p)[H]=x;s[H]=new o(H);s[H].b(x);p.define=x.define=S;x.version="0.5.3dev";S.amd={plugins:!0}})(this,document,this.curl||{});
+p)[H]=x;s[H]=new o(H);s[H].b(x);p.define=x.define=S;x.version="0.5.3";S.amd={plugins:!0}})(this,document,this.curl||{});
(function(p,i){function m(){if(!i.body)return!1;n||(n=i.createTextNode(""));try{return i.body.removeChild(i.body.appendChild(n)),n=j,!0}catch(d){return!1}}function r(){var d;d=C[i[l]]&&m();if(!t&&d){t=!0;for(clearTimeout(v);q=o.pop();)q();z&&(i[l]="complete");for(var c;c=w.shift();)c()}return d}function y(){r();t||(v=setTimeout(y,u))}var l="readyState",C={loaded:1,interactive:1,complete:1},w=[],z=typeof i[l]!="string",t=!1,u=10,d,q,o=[],v,j,n;d="addEventListener"in p?function(d,c){d.addEventListener(c,
r,!1);return function(){d.removeEventListener(c,r,!1)}}:function(d,c){d.attachEvent("on"+c,r);return function(){d.detachEvent(c,r)}};i&&!r()&&(o=[d(p,"load"),d(i,"readystatechange"),d(p,"DOMContentLoaded")],v=setTimeout(y,u));define("curl/domReady",function(){function d(c){t?c():w.push(c)}d.then=d;d.amd=!0;return d})})(this,document);
(function(p,i){function m(d,q,o){function l(i){i=i||p.event;if(i.type=="load"||w[c.readyState])c.onload=c[z]=c.onerror="",!d.test||y(d.test)?q(c):j()}function j(){c.onload=c[z]=c.onerror="";o&&o(Error("Script error or http error: "+d.url))}function n(){c.onload&&w[c.readyState]?l({}):c.onload&&k<new Date?j():setTimeout(n,10)}var k,c;k=(new Date).valueOf()+(d.timeout||300)*1E3;c=i.createElement("script");o&&d.test&&setTimeout(n,10);c.type=d.j||"text/javascript";c.onload=c[z]=l;c.onerror=j;c.charset=
View
2  dist/curl/curl.js
@@ -8,4 +8,4 @@ if(c>=0){e=a.substr(0,c);f=a.substr(c+1);var h=t(e);h.indexOf("/")<0&&(h=t((!n||
l,E)}g.c(j.b,j.a)},j.a)}else if(f=d=p(a,b.baseName),j=i[f],!j)j=i[f]=new o(f),j.url=A(t(f),r,!0),Q(j);return j}function P(a,b,d,c){for(var e=[],f=a.length,j=f,g=!1,h=0;h<j&&!g;h++)(function(a,h){h in b.d?(e[a]=b.d[h],f--):ca(h,b).c(function(b){e[a]=b;--f==0&&(g=!0,d(e))},function(a){g=!0;c(a)})})(h,a[h]);f==0&&!g&&d(e)}function V(a,b,d){if(m(a,"String")){d=(d=i[a])&&d.l;if(d===B)throw Error("Module is not already resolved: "+a);return d}P(a,d,function(a){b.b?b.b(a):b.apply(null,a)},function(a){if(b.a)b.a(a);
else throw a;})}function k(){var a=da.call(arguments),b,d;m(a[0],"Object")&&(g=a.shift(),J(g));b=[].concat(a[0]);a=a[1];d=z("");var c=new G,e={};e.then=function(a,b){c.c(function(b){a&&a.apply(null,b)},function(a){if(b)b(a);else throw a;});return e};e.next=function(a,b){var g=c;c=new G;g.c(function(){d.e(a,c,d)},function(a){c.a(a)});b&&c.c(function(a){b.apply(this,a)});return e};a&&e.then(a);d.e(b,c,d);return e}function R(){var a=aa(arguments),b=a.name;if(b==null)if(u!==B)u={g:"Multiple anonymous defines found in ${url}."};
else{var d;if(!m(w.opera,"Opera"))for(var c in C)if(C[c].readyState=="interactive"){d=c;break}if(!(b=d))u=a}if(b!=null)(d=i[b])||(d=i[b]=new o(b)),d.m=!1,"resolved"in d||O(d,a,z(b))}var N=D.head||D.getElementsByTagName("head")[0],r,n="curl/plugin",s={},i={},u,C={},S={}.toString,B,da=[].slice,X=/^\/|^[^:]+:\/\//,ba=/^(\.)(\.)?(\/|$)/,K=/\//,Y=/\?/,L,$={loaded:1,interactive:1,complete:1},M="onreadystatechange";H="./lib/main";I="./lib";var y;m(g,"Function")||J(g);var v;v=g.apiName||"curl";(g.apiContext||
-w)[v]=k;i[v]=new o(v);i[v].b(k);w.define=k.define=R;k.version="0.5.3dev";R.amd={plugins:!0}})(this,document,this.curl||{});
+w)[v]=k;i[v]=new o(v);i[v].b(k);w.define=k.define=R;k.version="0.5.3";R.amd={plugins:!0}})(this,document,this.curl||{});
View
2  src/curl.js
@@ -41,7 +41,7 @@
*/
var
- version = '0.5.3dev',
+ version = '0.5.3',
head = doc['head'] || doc.getElementsByTagName('head')[0],
// configuration information
baseUrl,
Please sign in to comment.
Something went wrong with that request. Please try again.