diff options
author | Armen Kesablyan | 2012-06-02 20:57:00 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-02 20:57:00 -0700 |
commit | 2136cbf21beeaf7550a0a8d94c1fc246c3dcefb2 (patch) | |
tree | c475bf0f30d334584ffb617175c2e027438f058e /node_modules | |
parent | 7655e32da5bcdf7b205afc1908c9b7bcc661b0d4 (diff) | |
parent | 6ac505c3fc2b4be7628b9df339ab9f64de700c8b (diff) | |
download | ninja-2136cbf21beeaf7550a0a8d94c1fc246c3dcefb2.tar.gz |
Merge branch 'binding' of https://github.com/dhg637/ninja-internal into binding
Conflicts:
js/tools/bindingTool.js
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'node_modules')
-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 |