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