diamond.js
Advanced tools
Comparing version 0.2.23 to 0.2.24
// Generated by CoffeeScript 1.8.0 | ||
(function() { | ||
var Property, | ||
var Property, isPrimitive, | ||
__hasProp = {}.hasOwnProperty, | ||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; | ||
isPrimitive = function(t) { | ||
return t === Boolean || t === Number || t === String; | ||
}; | ||
Property = (function(_super) { | ||
@@ -33,3 +37,3 @@ __extends(Property, _super); | ||
} else { | ||
value = this.type.prototype ? new this.type : this.type(); | ||
value = this.type.prototype && !isPrimitive(this.type) ? new this.type : this.type(); | ||
} | ||
@@ -39,3 +43,3 @@ } else if (value.properties != null) { | ||
} else if (value.constructor !== this.type) { | ||
value = this.type(value); | ||
value = this.type.prototype && !isPrimitive(this.type) ? new this.type(value) : this.type(value); | ||
} | ||
@@ -42,0 +46,0 @@ return value; |
{ | ||
"name": "diamond.js", | ||
"description": "Generic MVC web framework", | ||
"version": "0.2.23", | ||
"version": "0.2.24", | ||
"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
35939
489