Changeset 2679 for lang/javascript/jsdeferred
- Timestamp:
- 12/07/07 00:01:26 (13 months ago)
- Files:
-
- 1 modified
-
lang/javascript/jsdeferred/trunk/test-rhino.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/jsdeferred/trunk/test-rhino.js
r2678 r2679 125 125 } 126 126 }); 127 runQueue.add = sync(function (func, delay) {127 runQueue.add = function (func, delay) { 128 128 this.push({id:++runQueue._id,func:func, time: new Date().valueOf() + delay}); 129 129 return runQueue._id; 130 } );131 runQueue.remove = sync(function (id) {130 }; 131 runQueue.remove = function (id) { 132 132 for (var i = 0; i < this.length; i++) { 133 133 if (this[i].id == id) { … … 136 136 } 137 137 } 138 } );138 }; 139 139 runQueue._id = 0; 140 140 … … 161 161 162 162 // run process 163 spawn(function () { 164 while (runQueue.length) { 165 // print(uneval(runQueue)); 166 runQueue.process(); 167 } 168 Global.addFinalizer.finalizers.forEach(function (i) { i() }); 169 }); 163 while (runQueue.length) { 164 runQueue.process(); 165 } 166 Global.addFinalizer.finalizers.forEach(function (i) { i() }); 170 167 })();
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)