Permalink
Browse files

updated to 0.7.2

  • Loading branch information...
unscriptable committed Oct 31, 2012
1 parent caf56ba commit 1abdc2bab87e277b4b00ae8cf8832b423fd02d8e
View
@@ -26,6 +26,11 @@ IE10 compatibility: the following commits are compatible with IE10 (and Safari 6
* [0.6.8](https://github.com/cujojs/curl/tree/3568bea941a6a6068995bfbeb56fa72c65835056)
* [0.6.2a](https://github.com/cujojs/curl/tree/2683057e4cdf45eec44dd69dfd814ece75b7ae70)
+* 0.7.2
+ * css! plugin now works everywhere (closed an Opera-XDomain issue).
+ * css! plugin now returns the stylesheet created (as it used to, but for
+ all browsers).
+ * curl() error handler is called even if no success handler is specified.
* 0.7.1
* fixed inability to load non-anonymous "main" modules (packages) (also #138)
* restored ability to use urls in place of module ids as dependencies

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -13,7 +13,7 @@
(function (global) {
//"use strict"; don't restore this until the config routine is refactored
var
- version = '0.7.1',
+ version = '0.7.2',
curlName = 'curl',
userCfg,
prevCurl,
@@ -1094,35 +1094,35 @@
core.checkPreloads(cfg);
}
- // thanks to Joop Ringelberg for helping troubleshoot the API
- function CurlApi (ids, callback, errback, waitFor) {
- var then, ctx;
- ctx = core.createContext(userCfg, undef, [].concat(ids));
- this['then'] = then = function (resolved, rejected) {
- when(ctx,
- // return the dependencies as arguments, not an array
- function (deps) {
- if (resolved) resolved.apply(undef, deps);
- },
- // just throw if the dev didn't specify an error handler
- function (ex) {
- if (rejected) rejected(ex); else throw ex;
- }
- );
- return this;
- };
- this['next'] = function (ids, cb, eb) {
- // chain api
- return new CurlApi(ids, cb, eb, ctx);
- };
- if (callback) then(callback, errback);
- when(waitFor, function () { core.getDeps(ctx); });
- }
-
return new CurlApi(args[0], args[1], args[2]);
}
+ // thanks to Joop Ringelberg for helping troubleshoot the API
+ function CurlApi (ids, callback, errback, waitFor) {
+ var then, ctx;
+ ctx = core.createContext(userCfg, undef, [].concat(ids));
+ this['then'] = then = function (resolved, rejected) {
+ when(ctx,
+ // return the dependencies as arguments, not an array
+ function (deps) {
+ if (resolved) resolved.apply(undef, deps);
+ },
+ // just throw if the dev didn't specify an error handler
+ function (ex) {
+ if (rejected) rejected(ex); else throw ex;
+ }
+ );
+ return this;
+ };
+ this['next'] = function (ids, cb, eb) {
+ // chain api
+ return new CurlApi(ids, cb, eb, ctx);
+ };
+ if (callback || errback) then(callback, errback);
+ when(waitFor, function () { core.getDeps(ctx); });
+ }
+
_curl['version'] = version;
function _define (args) {

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
{
"name": "curl",
- "version": "0.7.1",
+ "version": "0.7.2",
"description": "A small, fast module and resource loader with dependency management. (AMD, CommonJS Modules/1.1, CSS, HTML, etc.)",
"keywords": ["curl", "cujo", "amd", "loader", "module"],
"licenses": [
View
@@ -13,7 +13,7 @@
(function (global) {
//"use strict"; don't restore this until the config routine is refactored
var
- version = '0.7.1',
+ version = '0.7.2',
curlName = 'curl',
userCfg,
prevCurl,

0 comments on commit 1abdc2b

Please sign in to comment.