Skip to content

jankuca/zone.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zone.js

Work in Progress, use at your own peril

Build Status

Implements Zones for JavaScript.

Examples

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!
});

Status

  • setTimeout and setInterval 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!

License

MIT

About

~★ ★ ★ ★ WIP ლ(╹◡╹ლ) ★ ★ ★ ★~

Resources

Stars

Watchers

Forks

Packages

No packages published