Releases: canjs/can-zone
Fixed a bug, updated a dependency, and updated the docs
0.6.13
This release fixes a memory leak caused when a handler is added via addEventListener
but later removed via removeEventListener
.
Issues
0.6.11
This release adds support for the afterRun
hook and allows for providing plugins as an array to the Zone constructor.
afterRun
This is a new hook that runs immediately after the run
function is called. This is useful if you need to do some sort of cleanup immediately after the run function is called, especially in cases where the Zone user is going to wait on the runPromise to complete.
var htmlZone = {
afterRun: function(){
this.data.state = document.documentElement.outerHTML;
}
};
var zone = new Zone(htmlZone);
zone.run(render);
zone.data.html; // Can use this now
Array argument in Zone constructor
A common way to use the Zone constructor is to pass only a list of plugins. This was a little clunky before:
var zone = new Zone({
plugins: [
pluginOne(),
pluginTwo()
]
});
In 0.6.11 this is now simplified to:
var zone = new Zone([
pluginOne(),
pluginTwo()
]);
0.6.10
This is a patch release that fixes a bug when using the onreadystate
event and the XHR plugin.
Pull Requests
0.6.8
This is a bug fix release that fixes an issue where the ended
hook could be called twice.
Issues
Upgrade StealJS
The steal
, steal-tools
, and related testing plugins have been updated to the latest versions.