Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix problem with observable generics for Array

  • Loading branch information...
commit 97562fec38474b611a0693fc7b38f02512a4b8ed 1 parent 0627b28
@kriskowal authored
Showing with 7 additions and 2 deletions.
  1. +1 −1  CHANGES.md
  2. +5 −0 observable.js
  3. +1 −1  package.json
View
2  CHANGES.md
@@ -1,5 +1,5 @@
-## v0.0.4
+## v0.0.5
- The `observable-array` and `observable-object` modules have been
moved to the Functional Reactive Bindings (`frb`) package as `array`
View
5 observable.js
@@ -18,6 +18,11 @@ Observable.getContentChangeDescriptor = function () {
};
Observable.addContentChangeListener = function (listener, beforeChange) {
+ // a concession for objects like Array that are not inherently observable
+ if (!this.isObservable) {
+ this.makeObservable();
+ }
+
var descriptor = this.getContentChangeDescriptor();
var listeners;
View
2  package.json
@@ -1,6 +1,6 @@
{
"name": "collections",
- "version": "0.0.4",
+ "version": "0.0.5",
"description": "data structures with idiomatic JavaScript collection interfaces",
"homepage": "http://github.com/kriskowal/collections",
"author": "Kris Kowal <kris@cixar.com> (http://github.com/kriskowal/collections)",
Please sign in to comment.
Something went wrong with that request. Please try again.