diff options
author | Jose Antonio Marquez | 2012-06-20 16:47:37 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-06-20 16:47:37 -0700 |
commit | 313a62245400e6c8cfa6d2f02c603cc7f01ddfc6 (patch) | |
tree | c207d1290be0e894a57b03098bbb7bbe5f2aee86 /node_modules/montage/core/serializer.js | |
parent | 2496e0d0b0ac5f8c53b12de77f0feda69ce4a2f4 (diff) | |
parent | 392a559e90357d48c910a07617261483b2b45476 (diff) | |
download | ninja-313a62245400e6c8cfa6d2f02c603cc7f01ddfc6.tar.gz |
Merge branch 'refs/heads/Ninja-Internal' into Document
Diffstat (limited to 'node_modules/montage/core/serializer.js')
-rwxr-xr-x | node_modules/montage/core/serializer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/montage/core/serializer.js b/node_modules/montage/core/serializer.js index 72543328..deadbc68 100755 --- a/node_modules/montage/core/serializer.js +++ b/node_modules/montage/core/serializer.js | |||
@@ -529,10 +529,10 @@ var Serializer = Montage.create(Montage, /** @lends module:montage/serializer.Se | |||
529 | return this._serializeElement(value); | 529 | return this._serializeElement(value); |
530 | } else if (Array.isArray(value)) { | 530 | } else if (Array.isArray(value)) { |
531 | return this._serializeArray(value, indent + 1); | 531 | return this._serializeArray(value, indent + 1); |
532 | } else if (Object.getPrototypeOf(value) === Object.prototype) { | ||
533 | return this._serializeObjectLiteral(value, null, indent + 1); | ||
534 | } else if (value.constructor === Function) { | 532 | } else if (value.constructor === Function) { |
535 | return this._serializeFunction(value, indent); | 533 | return this._serializeFunction(value, indent); |
534 | } else if (!("getInfoForObject" in value)) { // we consider object literals the ones who aren't a Montage object | ||
535 | return this._serializeObjectLiteral(value, null, indent + 1); | ||
536 | } else { | 536 | } else { |
537 | // TODO: should refactor this to handle references here, doesn't make | 537 | // TODO: should refactor this to handle references here, doesn't make |
538 | // sense to wait until it hits _serializeObject for that to happen | 538 | // sense to wait until it hits _serializeObject for that to happen |