Skip to content

Commit

Permalink
Version bump to 0.7.15
Browse files Browse the repository at this point in the history
  • Loading branch information
jdorn committed Feb 2, 2015
1 parent fab9371 commit 27f2e16
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "json-editor",
"version": "0.7.14",
"version": "0.7.15",
"authors": [
"Jeremy Dorn <[email protected]>"
],
Expand Down
12 changes: 8 additions & 4 deletions dist/jsoneditor.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*! 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
*/

/**
Expand Down Expand Up @@ -169,7 +169,7 @@ var $extend = function(destination) {
var $each = function(obj,callback) {
if(!obj) return;
var i;
if(typeof obj.length !== 'undefined') {
if(typeof obj.length === 'number') {
for(i=0; i<obj.length; i++) {
if(callback(i,obj[i])===false) return;
}
Expand Down Expand Up @@ -4296,7 +4296,7 @@ JSONEditor.defaults.editors.multiple = JSONEditor.AbstractEditor.extend({
$each(self.editors,function(type,editor) {
if(!editor) return;
if(self.type === type) {
editor.setValue(current_value,true);
if(self.keep_values) editor.setValue(current_value,true);
editor.container.style.display = '';
}
else editor.container.style.display = 'none';
Expand Down Expand Up @@ -4357,6 +4357,10 @@ JSONEditor.defaults.editors.multiple = JSONEditor.AbstractEditor.extend({
this.type = 0;
this.editors = [];
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;

if(this.schema.oneOf) {
this.oneOf = true;
Expand Down
10 changes: 5 additions & 5 deletions dist/jsoneditor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "json-editor",
"title": "JSONEditor",
"description": "JSON Schema based editor",
"version": "0.7.14",
"version": "0.7.15",
"main": "dist/jsoneditor.js",
"author": {
"name": "Jeremy Dorn",
Expand Down
4 changes: 2 additions & 2 deletions src/intro.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*! 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
*/

/**
Expand Down

0 comments on commit 27f2e16

Please sign in to comment.