Remove semicolons from examples

This commit is contained in:
jos 2016-10-28 11:46:46 +02:00
parent 099c5ee8ba
commit 9722414728
4 changed files with 17 additions and 17 deletions

View File

@ -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)
</script>
</body>
</html>

View File

@ -32,7 +32,7 @@
<script>
// create the editor
var container = document.getElementById('jsoneditor');
var container = document.getElementById('jsoneditor')
var options = {
modes: ['text', 'tree']
};
@ -43,8 +43,8 @@
'number': 123,
'object': {'a': 'b', 'c': 'd'},
'string': 'Hello World'
};
var editor = jsoneditor(container, options, json);
}
var editor = jsoneditor(container, options, json)
</script>
</body>
</html>

View File

@ -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)
</script>
</body>
</html>

View File

@ -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))
};
});
}
})