mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-25 14:45:48 +00:00
Cleanup
This commit is contained in:
@@ -173,6 +173,8 @@ function jsonify_structure(thing, field_name) {
|
|||||||
case 'object':
|
case 'object':
|
||||||
if (typeof thing.to_json === 'function') {
|
if (typeof thing.to_json === 'function') {
|
||||||
output = thing.to_json();
|
output = thing.to_json();
|
||||||
|
} else if (thing === null) {
|
||||||
|
break;
|
||||||
} else {
|
} else {
|
||||||
output = new thing.constructor;
|
output = new thing.constructor;
|
||||||
var keys = Object.keys(thing);
|
var keys = Object.keys(thing);
|
||||||
|
|||||||
Reference in New Issue
Block a user