json-editor
Advanced tools
Comparing version 0.7.14 to 0.7.15
{ | ||
"name": "json-editor", | ||
"version": "0.7.14", | ||
"version": "0.7.15", | ||
"authors": [ | ||
@@ -5,0 +5,0 @@ "Jeremy Dorn <jeremy@jeremydorn.com>" |
@@ -5,3 +5,3 @@ { | ||
"description": "JSON Schema based editor", | ||
"version": "0.7.14", | ||
"version": "0.7.15", | ||
"main": "dist/jsoneditor.js", | ||
@@ -8,0 +8,0 @@ "author": { |
@@ -62,3 +62,3 @@ // Multiple Editor (for when `type` is an array) | ||
if(self.type === type) { | ||
editor.setValue(current_value,true); | ||
if(self.keep_values) editor.setValue(current_value,true); | ||
editor.container.style.display = ''; | ||
@@ -124,2 +124,6 @@ } | ||
this.validators = []; | ||
this.keep_values = true; | ||
if(typeof this.jsoneditor.options.keep_oneof_values !== "undefined") this.keep_values = this.jsoneditor.options.keep_oneof_values; | ||
if(typeof this.options.keep_oneof_values !== "undefined") this.keep_values = this.options.keep_oneof_values; | ||
@@ -126,0 +130,0 @@ if(this.schema.oneOf) { |
@@ -1,6 +0,6 @@ | ||
/*! JSON Editor v0.7.14 - JSON Schema -> HTML Editor | ||
/*! JSON Editor v0.7.15 - JSON Schema -> HTML Editor | ||
* By Jeremy Dorn - https://github.com/jdorn/json-editor/ | ||
* Released under the MIT license | ||
* | ||
* Date: 2015-01-25 | ||
* Date: 2015-02-02 | ||
*/ | ||
@@ -7,0 +7,0 @@ |
@@ -39,3 +39,3 @@ var $isplainobject = function( obj ) { | ||
var i; | ||
if(typeof obj.length !== 'undefined') { | ||
if(typeof obj.length === 'number') { | ||
for(i=0; i<obj.length; i++) { | ||
@@ -42,0 +42,0 @@ if(callback(i,obj[i])===false) return; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
678247
13318