json-editor
Advanced tools
Comparing version 0.7.19 to 0.7.20
{ | ||
"name": "json-editor", | ||
"version": "0.7.19", | ||
"version": "0.7.20", | ||
"authors": [ | ||
@@ -5,0 +5,0 @@ "Jeremy Dorn <jeremy@jeremydorn.com>" |
@@ -79,3 +79,3 @@ 'use strict'; | ||
files: ["src/**/*.js"], | ||
tasks: ["concat"] | ||
tasks: ["concat_sourcemap"] | ||
} | ||
@@ -82,0 +82,0 @@ }, |
@@ -5,3 +5,3 @@ { | ||
"description": "JSON Schema based editor", | ||
"version": "0.7.19", | ||
"version": "0.7.20", | ||
"main": "dist/jsoneditor.js", | ||
@@ -8,0 +8,0 @@ "author": { |
@@ -410,2 +410,5 @@ var JSONEditor = function(element,options) { | ||
delete schema.$ref; | ||
if(!this.refs[ref]) ref = decodeURIComponent(ref); | ||
schema = this.extendSchemas(schema,this.refs[ref]); | ||
@@ -412,0 +415,0 @@ } |
@@ -1,2 +0,2 @@ | ||
/*! JSON Editor v0.7.19 - JSON Schema -> HTML Editor | ||
/*! JSON Editor v0.7.20 - JSON Schema -> HTML Editor | ||
* By Jeremy Dorn - https://github.com/jdorn/json-editor/ | ||
@@ -3,0 +3,0 @@ * Released under the MIT license |
@@ -194,3 +194,3 @@ // Base Foundation theme | ||
var el = document.createElement('div'); | ||
el.innerHTML = "<dl class='tabs vertical'></dl><div class='tabs-content'></div>"; | ||
el.innerHTML = "<dl class='tabs vertical'></dl><div class='tabs-content vertical'></div>"; | ||
return el; | ||
@@ -197,0 +197,0 @@ }, |
@@ -69,5 +69,5 @@ /** | ||
var $each = function(obj,callback) { | ||
if(!obj) return; | ||
if(!obj || typeof obj !== "object") return; | ||
var i; | ||
if(!obj.hasOwnProperty('length') && typeof obj.length === 'number') { | ||
if(Array.isArray(obj) || (typeof obj.length === 'number' && obj.length > 0 && (obj.length - 1) in obj)) { | ||
for(i=0; i<obj.length; i++) { | ||
@@ -74,0 +74,0 @@ if(callback(i,obj[i])===false) return; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
962133
13672