Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update of test related to #7.

  • Loading branch information...
commit d8fc04adcf1d55adcef7a6778720fe4544d3215d 1 parent b6a2f86
@jrburke authored
Showing with 10 additions and 6 deletions.
  1. +10 −6 tests/plugins/order/order.js
View
16 tests/plugins/order/order.js
@@ -173,12 +173,16 @@
//so that subsequent addition of a real type="text/javascript"
//tag will cause the scripts to be executed immediately in the
//correct order.
- cacheWaiting.push({
- name: name,
- req: req,
- onLoad: onLoad
- });
- require.attach(url, null, name, scriptCacheCallback, "script/cache");
+ if (req.specified(name)) {
+ req([name], onLoad);
+ } else {
+ cacheWaiting.push({
+ name: name,
+ req: req,
+ onLoad: onLoad
+ });
+ require.attach(url, null, name, scriptCacheCallback, "script/cache");
+ }
}
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.