aurelia-chart
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -69,3 +69,3 @@ define(["exports", "aurelia-framework", "../observers/model-observer", "chartjs"], function (exports, _aureliaFramework, _observersModelObserver, _chartjs) { | ||
this.propertyChanged = function (propertyName, newValue, oldValue) { | ||
if (_this._isSetup && _isObserving) { | ||
if (_this._isSetup && _this._isObserving) { | ||
_this.refreshChart(); | ||
@@ -93,3 +93,3 @@ _this._modelObserver.unsubscribe(); | ||
if (this.shouldUpdate == true) { | ||
if (this._isObserving) { | ||
this.subscribeToChanges(); | ||
@@ -125,3 +125,3 @@ } | ||
this._modelObserver.throttle = this.throttle || 100; | ||
this._modelObserver.observe(this.data.datasets, this.refreshChart); | ||
this._modelObserver.observe(this.data, this.refreshChart); | ||
} | ||
@@ -128,0 +128,0 @@ }, { |
@@ -74,3 +74,3 @@ "use strict"; | ||
this.propertyChanged = function (propertyName, newValue, oldValue) { | ||
if (_this._isSetup && _isObserving) { | ||
if (_this._isSetup && _this._isObserving) { | ||
_this.refreshChart(); | ||
@@ -98,3 +98,3 @@ _this._modelObserver.unsubscribe(); | ||
if (this.shouldUpdate == true) { | ||
if (this._isObserving) { | ||
this.subscribeToChanges(); | ||
@@ -130,3 +130,3 @@ } | ||
this._modelObserver.throttle = this.throttle || 100; | ||
this._modelObserver.observe(this.data.datasets, this.refreshChart); | ||
this._modelObserver.observe(this.data, this.refreshChart); | ||
} | ||
@@ -133,0 +133,0 @@ }, { |
@@ -28,3 +28,3 @@ import {inject, customAttribute, bindable} from 'aurelia-framework' | ||
if(this.shouldUpdate == true) | ||
if(this._isObserving) | ||
{ this.subscribeToChanges(); } | ||
@@ -43,3 +43,3 @@ } | ||
propertyChanged = (propertyName, newValue, oldValue) => { | ||
if(this._isSetup && _isObserving) | ||
if(this._isSetup && this._isObserving) | ||
{ | ||
@@ -79,4 +79,4 @@ this.refreshChart(); | ||
this._modelObserver.throttle = this.throttle || 100; | ||
this._modelObserver.observe(this.data.datasets, this.refreshChart); | ||
this._modelObserver.observe(this.data, this.refreshChart); | ||
}; | ||
} |
@@ -74,3 +74,3 @@ System.register(["aurelia-framework", "../observers/model-observer", "chartjs"], function (_export) { | ||
this.propertyChanged = function (propertyName, newValue, oldValue) { | ||
if (_this._isSetup && _isObserving) { | ||
if (_this._isSetup && _this._isObserving) { | ||
_this.refreshChart(); | ||
@@ -98,3 +98,3 @@ _this._modelObserver.unsubscribe(); | ||
if (this.shouldUpdate == true) { | ||
if (this._isObserving) { | ||
this.subscribeToChanges(); | ||
@@ -130,3 +130,3 @@ } | ||
this._modelObserver.throttle = this.throttle || 100; | ||
this._modelObserver.observe(this.data.datasets, this.refreshChart); | ||
this._modelObserver.observe(this.data, this.refreshChart); | ||
} | ||
@@ -133,0 +133,0 @@ }, { |
{ | ||
"name": "aurelia-chart", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"registry": "jspm", | ||
@@ -5,0 +5,0 @@ "description": "A simple element to handle showing charts (uses chart js behind the scenes)", |
@@ -28,3 +28,3 @@ import {inject, customAttribute, bindable} from 'aurelia-framework' | ||
if(this.shouldUpdate == true) | ||
if(this._isObserving) | ||
{ this.subscribeToChanges(); } | ||
@@ -43,3 +43,3 @@ } | ||
propertyChanged = (propertyName, newValue, oldValue) => { | ||
if(this._isSetup && _isObserving) | ||
if(this._isSetup && this._isObserving) | ||
{ | ||
@@ -79,4 +79,4 @@ this.refreshChart(); | ||
this._modelObserver.throttle = this.throttle || 100; | ||
this._modelObserver.observe(this.data.datasets, this.refreshChart); | ||
this._modelObserver.observe(this.data, this.refreshChart); | ||
}; | ||
} |
1760818