Skip to content

Releases: canjs/can-zone

Fixed a bug, updated a dependency, and updated the docs

01 Nov 22:28
Compare
Choose a tag to compare
  • Make sure wrapped event handler is created only once #146
  • Update mocha to the latest version 🚀 #142
  • Update docs with new @parent & @collection #147

v0.6.13...v0.6.14

0.6.13

18 Oct 13:05
Compare
Choose a tag to compare

This release fixes a memory leak caused when a handler is added via addEventListener but later removed via removeEventListener.

Issues

#144 Wrapped event listeners cannot be removed

0.6.11

26 Sep 13:03
Compare
Choose a tag to compare

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

28 Jun 13:18
Compare
Choose a tag to compare

This is a patch release that fixes a bug when using the onreadystate event and the XHR plugin.

Pull Requests

0.6.8

15 Jun 19:13
Compare
Choose a tag to compare

This is a bug fix release that fixes an issue where the ended hook could be called twice.

Issues

Upgrade StealJS

02 Mar 23:47
Compare
Choose a tag to compare

The steal, steal-tools, and related testing plugins have been updated to the latest versions.

Store timeout ids correctly when they are a number

15 Mar 17:11
Compare
Choose a tag to compare

v0.6.3

15 Mar 17:10
Compare
Choose a tag to compare

Reset zone.runningTask after running a task

05 Jan 15:35
Compare
Choose a tag to compare

XSS: escape < and > characters in written out XHR response

05 Jan 15:34
Compare
Choose a tag to compare