viewmodel
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -116,3 +116,3 @@ 'use strict'; | ||
vms = _.map(vms, function(data) { | ||
var vm = new ViewModel(data, this); | ||
var vm = new ViewModel(data, self); | ||
vm.actionOnCommit = 'update'; | ||
@@ -119,0 +119,0 @@ return vm; |
@@ -13,2 +13,7 @@ 'use strict'; | ||
function ViewModel (attr, repository) { | ||
if (!repository) { | ||
var errMsg = 'Please pass in a valid repository'; | ||
console.log(errMsg); | ||
throw new Error(errMsg); | ||
} | ||
@@ -15,0 +20,0 @@ for (var f in Repository.prototype) { |
{ | ||
"author": "adrai", | ||
"name": "viewmodel", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -0,1 +1,4 @@ | ||
#### v1.1.6 | ||
- Fix undefined repository test in ViewModel constructor [#4](https://github.com/adrai/node-viewmodel/pull/4) thanks to [sbiaudet](https://github.com/sbiaudet) | ||
#### v1.1.5 | ||
@@ -2,0 +5,0 @@ - make redis commit transactional |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52298
1395