canjs / can-zone

A context for tracking asynchronous activity in JavaScript applications.
https://v4.canjs.com/doc/can-zone.html
MIT License
92 stars 4 forks source link

Allow passing only an array as the ZoneSpec #138

Closed matthewp closed 7 years ago

matthewp commented 7 years ago

This makes an Array a valid ZoneSpec. This is useful in the case where you are only using plugins and not writing any of your own (which is common), so that you can write like so:

new Zone([
  plugin(),

  another(arg)
]);

Closes #133