Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit c019061

Browse files
Adding pacman-unicode example
1 parent 5555090 commit c019061

38 files changed

+1885
-168
lines changed

dist/rx.all.compat.js

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,19 +1480,15 @@
14801480

14811481
function runTask(handle) {
14821482
if (currentlyRunning) {
1483-
root.setTimeout(function () { runTask(handle) }, 0);
1483+
localSetTimeout(function () { runTask(handle) }, 0);
14841484
} else {
14851485
var task = tasksByHandle[handle];
14861486
if (task) {
14871487
currentlyRunning = true;
1488-
try {
1489-
task();
1490-
} catch (e) {
1491-
throw e;
1492-
} finally {
1493-
clearMethod(handle);
1494-
currentlyRunning = false;
1495-
}
1488+
var result = tryCatch(task)();
1489+
clearMethod(handle);
1490+
currentlyRunning = false;
1491+
if (result === errorObj) { return thrower(result.e); }
14961492
}
14971493
}
14981494
}
@@ -1523,19 +1519,15 @@
15231519
scheduleMethod = function (action) {
15241520
var id = nextHandle++;
15251521
tasksByHandle[id] = action;
1526-
setImmediate(function () {
1527-
runTask(id);
1528-
});
1522+
setImmediate(function () { runTask(id); });
15291523

15301524
return id;
15311525
};
15321526
} else if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {
15331527
scheduleMethod = function (action) {
15341528
var id = nextHandle++;
15351529
tasksByHandle[id] = action;
1536-
process.nextTick(function () {
1537-
runTask(id);
1538-
});
1530+
process.nextTick(function () { runTask(id); });
15391531

15401532
return id;
15411533
};
@@ -1564,7 +1556,7 @@
15641556
} else if (!!root.MessageChannel) {
15651557
var channel = new root.MessageChannel();
15661558

1567-
channel.port1.onmessage = function (event) { runTask(event.data); };
1559+
channel.port1.onmessage = function (e) { runTask(e.data); };
15681560

15691561
scheduleMethod = function (action) {
15701562
var id = nextHandle++;

dist/rx.all.compat.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.all.compat.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.all.js

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,19 +1289,15 @@
12891289

12901290
function runTask(handle) {
12911291
if (currentlyRunning) {
1292-
root.setTimeout(function () { runTask(handle) }, 0);
1292+
localSetTimeout(function () { runTask(handle) }, 0);
12931293
} else {
12941294
var task = tasksByHandle[handle];
12951295
if (task) {
12961296
currentlyRunning = true;
1297-
try {
1298-
task();
1299-
} catch (e) {
1300-
throw e;
1301-
} finally {
1302-
clearMethod(handle);
1303-
currentlyRunning = false;
1304-
}
1297+
var result = tryCatch(task)();
1298+
clearMethod(handle);
1299+
currentlyRunning = false;
1300+
if (result === errorObj) { return thrower(result.e); }
13051301
}
13061302
}
13071303
}
@@ -1332,19 +1328,15 @@
13321328
scheduleMethod = function (action) {
13331329
var id = nextHandle++;
13341330
tasksByHandle[id] = action;
1335-
setImmediate(function () {
1336-
runTask(id);
1337-
});
1331+
setImmediate(function () { runTask(id); });
13381332

13391333
return id;
13401334
};
13411335
} else if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {
13421336
scheduleMethod = function (action) {
13431337
var id = nextHandle++;
13441338
tasksByHandle[id] = action;
1345-
process.nextTick(function () {
1346-
runTask(id);
1347-
});
1339+
process.nextTick(function () { runTask(id); });
13481340

13491341
return id;
13501342
};
@@ -1373,7 +1365,7 @@
13731365
} else if (!!root.MessageChannel) {
13741366
var channel = new root.MessageChannel();
13751367

1376-
channel.port1.onmessage = function (event) { runTask(event.data); };
1368+
channel.port1.onmessage = function (e) { runTask(e.data); };
13771369

13781370
scheduleMethod = function (action) {
13791371
var id = nextHandle++;

dist/rx.all.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.all.min.js

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.compat.js

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,19 +1480,15 @@
14801480

14811481
function runTask(handle) {
14821482
if (currentlyRunning) {
1483-
root.setTimeout(function () { runTask(handle) }, 0);
1483+
localSetTimeout(function () { runTask(handle) }, 0);
14841484
} else {
14851485
var task = tasksByHandle[handle];
14861486
if (task) {
14871487
currentlyRunning = true;
1488-
try {
1489-
task();
1490-
} catch (e) {
1491-
throw e;
1492-
} finally {
1493-
clearMethod(handle);
1494-
currentlyRunning = false;
1495-
}
1488+
var result = tryCatch(task)();
1489+
clearMethod(handle);
1490+
currentlyRunning = false;
1491+
if (result === errorObj) { return thrower(result.e); }
14961492
}
14971493
}
14981494
}
@@ -1523,19 +1519,15 @@
15231519
scheduleMethod = function (action) {
15241520
var id = nextHandle++;
15251521
tasksByHandle[id] = action;
1526-
setImmediate(function () {
1527-
runTask(id);
1528-
});
1522+
setImmediate(function () { runTask(id); });
15291523

15301524
return id;
15311525
};
15321526
} else if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {
15331527
scheduleMethod = function (action) {
15341528
var id = nextHandle++;
15351529
tasksByHandle[id] = action;
1536-
process.nextTick(function () {
1537-
runTask(id);
1538-
});
1530+
process.nextTick(function () { runTask(id); });
15391531

15401532
return id;
15411533
};
@@ -1564,7 +1556,7 @@
15641556
} else if (!!root.MessageChannel) {
15651557
var channel = new root.MessageChannel();
15661558

1567-
channel.port1.onmessage = function (event) { runTask(event.data); };
1559+
channel.port1.onmessage = function (e) { runTask(e.data); };
15681560

15691561
scheduleMethod = function (action) {
15701562
var id = nextHandle++;

dist/rx.compat.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.compat.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.js

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,19 +1289,15 @@
12891289

12901290
function runTask(handle) {
12911291
if (currentlyRunning) {
1292-
root.setTimeout(function () { runTask(handle) }, 0);
1292+
localSetTimeout(function () { runTask(handle) }, 0);
12931293
} else {
12941294
var task = tasksByHandle[handle];
12951295
if (task) {
12961296
currentlyRunning = true;
1297-
try {
1298-
task();
1299-
} catch (e) {
1300-
throw e;
1301-
} finally {
1302-
clearMethod(handle);
1303-
currentlyRunning = false;
1304-
}
1297+
var result = tryCatch(task)();
1298+
clearMethod(handle);
1299+
currentlyRunning = false;
1300+
if (result === errorObj) { return thrower(result.e); }
13051301
}
13061302
}
13071303
}
@@ -1332,19 +1328,15 @@
13321328
scheduleMethod = function (action) {
13331329
var id = nextHandle++;
13341330
tasksByHandle[id] = action;
1335-
setImmediate(function () {
1336-
runTask(id);
1337-
});
1331+
setImmediate(function () { runTask(id); });
13381332

13391333
return id;
13401334
};
13411335
} else if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {
13421336
scheduleMethod = function (action) {
13431337
var id = nextHandle++;
13441338
tasksByHandle[id] = action;
1345-
process.nextTick(function () {
1346-
runTask(id);
1347-
});
1339+
process.nextTick(function () { runTask(id); });
13481340

13491341
return id;
13501342
};
@@ -1373,7 +1365,7 @@
13731365
} else if (!!root.MessageChannel) {
13741366
var channel = new root.MessageChannel();
13751367

1376-
channel.port1.onmessage = function (event) { runTask(event.data); };
1368+
channel.port1.onmessage = function (e) { runTask(e.data); };
13771369

13781370
scheduleMethod = function (action) {
13791371
var id = nextHandle++;

0 commit comments

Comments
 (0)