diamond.js
Advanced tools
Comparing version 0.2.7 to 0.2.10
@@ -37,3 +37,6 @@ // Generated by CoffeeScript 1.7.1 | ||
this.properties = new Object; | ||
this.collection = this.constructor.collection || this.constructor.name.toLowerCase(); | ||
this.collection = this.constructor.collection; | ||
if (this.collection == null) { | ||
throw "Undefined collection for model " + this.constructor.name; | ||
} | ||
this.hasError = false; | ||
@@ -40,0 +43,0 @@ _ref = this.constructor.properties; |
@@ -32,6 +32,4 @@ // Generated by CoffeeScript 1.7.1 | ||
v = _ref[k]; | ||
if (this.constructor.properties[k]) { | ||
if (this.constructor.properties[k].save) { | ||
this.constructor.properties[k].save(v); | ||
} | ||
if (this.constructor.properties[k].save) { | ||
this.properties[k] = this.constructor.properties[k].save.call(this, v); | ||
} | ||
@@ -51,6 +49,4 @@ } | ||
v = _ref[k]; | ||
if (this.constructor.properties[k]) { | ||
if (this.constructor.properties[k].save) { | ||
this.constructor.properties[k].save(v); | ||
} | ||
if (this.constructor.properties[k].save) { | ||
this.properties[k] = this.constructor.properties[k].save.call(this, v); | ||
} | ||
@@ -57,0 +53,0 @@ } |
{ | ||
"name": "diamond.js", | ||
"description": "MVC web framework", | ||
"version": "0.2.7", | ||
"version": "0.2.10", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Arthur Xavier", |
Sorry, the diff of this file is not supported yet
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
28582
527