Comparing version 0.6.15 to 0.6.16
{ | ||
"name": "imvvm", | ||
"version": "0.6.15", | ||
"version": "0.6.16", | ||
"homepage": "https://github.com/entrendipity/imvvm", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -25,4 +25,4 @@ /*jshint unused: false */ | ||
Hobby: function(hobbyState, init){ | ||
return new HobbyModel()(hobbyState, init); | ||
Hobby: function(){ | ||
return new HobbyModel().apply(this, arguments); | ||
}, | ||
@@ -29,0 +29,0 @@ |
@@ -38,4 +38,4 @@ /*jshint unused: false */ | ||
Person: function(personState, init){ | ||
return new PersonModel(this.personStateChangedHandler)(personState, init); | ||
Person: function(){ | ||
return new PersonModel(this.personStateChangedHandler).apply(this, arguments); | ||
}, | ||
@@ -42,0 +42,0 @@ |
{ | ||
"name": "imvvm", | ||
"description": "Immutable MVVM for React", | ||
"version": "0.6.15", | ||
"version": "0.6.16", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "mvvm", |
@@ -206,4 +206,4 @@ IMVVM | ||
Person: function(personState, init){ | ||
return new PersonModel(this.personStateChangedHandler)(personState, init); | ||
Person: function(){ | ||
return new PersonModel(this.personStateChangedHandler).apply(this, arguments); | ||
}, | ||
@@ -818,7 +818,5 @@ | ||
######ModelInstance ModelFactory(object nextState[, boolean initialize:false]) | ||
```javascript | ||
Person: function(person, init){ | ||
return new PersonModel(this.personStateChangedHandler)(person, init); | ||
Person: function(){ | ||
return new PersonModel(this.personStateChangedHandler).apply(this, arguments); | ||
}, | ||
@@ -825,0 +823,0 @@ ``` |
170166
938