Work in Progress, use at your own peril
Implements Zones for JavaScript.
Run some function at the end of each VM turn:
zone.apply(function () {
zone.afterTurn = function () {
console.log('hello');
};
// woo!
});
Alternatively, you can extend Zone
:
// extend Zone
var myZone = zone.createChild({
afterTurn: function () {
console.log('hello!');
}
});
myZone.apply(function () {
// woo!
});
setTimeout
andsetInterval
work in FF23, IE10, and Chrome.- stack trace rewrite is kinda ugly and may contain extraneous calls.
elt.onevent
works in FF23, IE10, but not Chrome. There's a fix in the works though!
MIT