From 9722414728b0e577a1e5a094595428d0a7a23c4d Mon Sep 17 00:00:00 2001 From: jos Date: Fri, 28 Oct 2016 11:46:46 +0200 Subject: [PATCH] Remove semicolons from examples --- examples/_05_custom_fields_editable.html | 8 ++++---- examples/_06_custom_styling.html | 6 +++--- examples/_07_json_schema_validation.html | 10 +++++----- examples/requirejs_demo/scripts/main.js | 10 +++++----- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/examples/_05_custom_fields_editable.html b/examples/_05_custom_fields_editable.html index c9d71bc..a245ce0 100644 --- a/examples/_05_custom_fields_editable.html +++ b/examples/_05_custom_fields_editable.html @@ -42,21 +42,21 @@ return { field: false, value: true - }; + } default: return true; } } - }; + } var json = { _id: 123456, name: 'John', age: 32 - }; + } - var editor = jsoneditor(container, options, json); + var editor = jsoneditor(container, options, json) diff --git a/examples/_06_custom_styling.html b/examples/_06_custom_styling.html index f8b02e3..41daf60 100644 --- a/examples/_06_custom_styling.html +++ b/examples/_06_custom_styling.html @@ -32,7 +32,7 @@ diff --git a/examples/_07_json_schema_validation.html b/examples/_07_json_schema_validation.html index 3d777aa..cbee05a 100644 --- a/examples/_07_json_schema_validation.html +++ b/examples/_07_json_schema_validation.html @@ -49,22 +49,22 @@ } }, "required": ["firstName", "lastName"] - }; + } var json = { firstName: 'John', lastName: 'Doe', gender: null, age: 28 - }; + } var options = { schema: schema - }; + } // create the editor - var container = document.getElementById('jsoneditor'); - var editor = jsoneditor(container, options, json); + var container = document.getElementById('jsoneditor') + var editor = jsoneditor(container, options, json) diff --git a/examples/requirejs_demo/scripts/main.js b/examples/requirejs_demo/scripts/main.js index 820aad7..400ebef 100644 --- a/examples/requirejs_demo/scripts/main.js +++ b/examples/requirejs_demo/scripts/main.js @@ -14,13 +14,13 @@ require([module], function (jsoneditor) { 'number': 123, 'object': {'a': 'b', 'c': 'd'}, 'string': 'Hello World' - }; + } editor.set(json) - }; + } // get json document.getElementById('getJSON').onclick = function () { - var json = editor.get(); + var json = editor.get() alert(JSON.stringify(json, null, 2)) - }; -}); + } +})