Skip to content

Commit

Permalink
update of test related to #7.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrburke committed Jan 18, 2012
1 parent b6a2f86 commit d8fc04a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions tests/plugins/order/order.js
Expand Up @@ -173,12 +173,16 @@
//so that subsequent addition of a real type="text/javascript" //so that subsequent addition of a real type="text/javascript"
//tag will cause the scripts to be executed immediately in the //tag will cause the scripts to be executed immediately in the
//correct order. //correct order.
cacheWaiting.push({ if (req.specified(name)) {
name: name, req([name], onLoad);
req: req, } else {
onLoad: onLoad cacheWaiting.push({
}); name: name,
require.attach(url, null, name, scriptCacheCallback, "script/cache"); req: req,
onLoad: onLoad
});
require.attach(url, null, name, scriptCacheCallback, "script/cache");
}
} }
} }
}); });
Expand Down

0 comments on commit d8fc04a

Please sign in to comment.