Skip to content

Commit

Permalink
Reverted one change from #143 that broke collections.
Browse files Browse the repository at this point in the history
Missed that this also initializes colections.
  • Loading branch information
Kanaye committed May 27, 2016
1 parent dddbd0a commit 703f0d7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/mvc/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,12 @@ define([

_setPropertyValue: function (property, propertyValue) {
var propertyName = property.propertyName;
if (property.isObservable) {
this[propertyName] = this._createObservable(property, propertyValue);
} else if (blocks.isFunction(this[propertyName])) {

if (blocks.isFunction(this[propertyName])) {
this[propertyName](propertyValue);
this._dataSource.update(this.dataItem());
} else if (property.isObservable) {
this[propertyName] = this._createObservable(property, propertyValue);
} else {
this[propertyName] = function () {
return propertyValue;
Expand Down

0 comments on commit 703f0d7

Please sign in to comment.