Skip to content

Releases: datavis-tech/reactive-property

Production Ready

24 May 11:08
Compare
Choose a tag to compare

This library is now quite stable.

The only new feature added in this release is storing defaults.

Simplify

24 Feb 05:30
Compare
Choose a tag to compare

The implementation is simplified and you can no longer access the context object as this in listeners.

my.x.on(function(value){
  console.log(this === my); // Prints "false"
});

With this change, the example code for having reactive properties on an object with method chaining becomes much nicer.

Before this release:

var my = {};
my.x = ReactiveProperty(5, my);
my.y = ReactiveProperty(10, my);
my.x(50).y(100);

After this release:

var my = {
  x: ReactiveProperty(5),
  y: ReactiveProperty(10)
};
my.x(50).y(100);

v0.6.0

23 Feb 00:47
Compare
Choose a tag to compare

This fixes a bug where this was not getting passed correctly into listeners when the property value is updated.