viewmodel
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -74,8 +74,8 @@ var fs = require('fs') | ||
var obj = _.clone(vm); | ||
delete obj.actionOnCommit; | ||
delete obj.destroy; | ||
delete obj.commit; | ||
delete obj.toJSON; | ||
delete obj.set; | ||
delete obj.get; | ||
if (obj.actionOnCommit) delete obj.actionOnCommit; | ||
if (obj.destroy) delete obj.destroy; | ||
if (obj.commit) delete obj.commit; | ||
if (obj.toJSON) delete obj.toJSON; | ||
if (obj.set) delete obj.set; | ||
if (obj.get) delete obj.get; | ||
return obj; | ||
@@ -89,3 +89,3 @@ } | ||
getNewViewModel: function(id) { | ||
return this.fromObject({ id: id, actionOnCommit: 'create', _revision: 1 }); | ||
return this.fromObject({ id: id, actionOnCommit: 'create' }); | ||
}, | ||
@@ -92,0 +92,0 @@ |
{ | ||
"author": "adrai", | ||
"name": "viewmodel", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"private": false, | ||
@@ -14,3 +14,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"lodash": ">= 2.2.1", | ||
"lodash": ">= 2.4.1", | ||
"tolerance": ">= 1.0.0" | ||
@@ -17,0 +17,0 @@ }, |
@@ -149,3 +149,3 @@ # Introduction | ||
Copyright (c) 2013 Adriano Raiano | ||
Copyright (c) 2014 Adriano Raiano | ||
@@ -152,0 +152,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
43362
Updatedlodash@>= 2.4.1