Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix issue found with i18n.build.js where paused items were not cleare…

…d out fast enough in the sync loading case. Still part of 0.2.1
  • Loading branch information...
commit 9acd96410baca4d6868b282b930fcd2ded69b2ff 1 parent 0e72253
@jrburke authored
Showing with 3 additions and 4 deletions.
  1. +3 −2 require.js
  2. +0 −2  tasks.txt
View
5 require.js
@@ -733,7 +733,7 @@ var require, define;
* Resumes tracing of dependencies and then checks if everything is loaded.
*/
resume = function () {
- var args, i, p = context.paused;
+ var args, i, p;
if (context.scriptCount <= 0) {
//Synchronous envs will push the number below zero with the
@@ -758,7 +758,8 @@ var require, define;
return undefined;
}
- if (p.length) {
+ while (context.paused.length) {
+ p = context.paused;
//Reset paused list
context.paused = [];
View
2  tasks.txt
@@ -1,7 +1,5 @@
- require.js + modules in one file, still asks to load the other files, if there is a require in there?
- ending slash in paths should throw error: https://github.com/jrburke/requirejs/issues/issue/49/
-- download page missing link to optimization tool.
-- i18n.build.js acting weird?
- sync calls to plugins, the has! example.
Please sign in to comment.
Something went wrong with that request. Please try again.