Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/utils/platforms/browser/lib/reactor.js
diff options
context:
space:
mode:
Diffstat (limited to 'utils/platforms/browser/lib/reactor.js')
-rwxr-xr-xutils/platforms/browser/lib/reactor.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/utils/platforms/browser/lib/reactor.js b/utils/platforms/browser/lib/reactor.js
deleted file mode 100755
index bd0f10c..0000000
--- a/utils/platforms/browser/lib/reactor.js
+++ /dev/null
@@ -1,21 +0,0 @@
-
-var active = false;
-var pending = [];
-var run = function () {
- var task = pending.shift();
- if (0 === pending.length) {
- active = false;
- } else {
- setTimeout(run, 0);
- }
- task();
-};
-
-exports.enqueue = function enqueue(task) {
- pending.push(task);
- if (!active) {
- setTimeout(run, 0);
- active = true;
- }
-};
-