diff options
author | Valerio Virgillito | 2012-04-18 13:48:51 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-04-18 13:48:51 -0700 |
commit | 2e04af953463643791f6362bd8ef4c6ba190abfa (patch) | |
tree | d07aaf646091ddf9dad5b030a7905055fd323490 /node_modules/montage/ui/repetition.reel/repetition.js | |
parent | 616a8532099fec2a15855eac97cd85cb60c4451c (diff) | |
download | ninja-2e04af953463643791f6362bd8ef4c6ba190abfa.tar.gz |
Squashed commit of the following:
commit 2054551bfb01a0f4ca2e138b9d724835462d45cd
Merge: 765c2da 616a853
Author: Valerio Virgillito <valerio@motorola.com>
Date: Wed Apr 18 13:48:21 2012 -0700
Merge branch 'refs/heads/master' into integration
commit 765c2da8e1aa03550caf42b2bd5f367555ad2843
Author: Valerio Virgillito <valerio@motorola.com>
Date: Tue Apr 17 15:29:41 2012 -0700
updating the picasa carousel
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
commit 9484f1c82b81e27edf2dc0a1bcc1fa3b12077406
Merge: d27f2df cacb4a2
Author: Valerio Virgillito <valerio@motorola.com>
Date: Tue Apr 17 15:03:50 2012 -0700
Merge branch 'refs/heads/master' into integration
commit d27f2df4d846064444263d7832d213535962abe7
Author: Valerio Virgillito <valerio@motorola.com>
Date: Wed Apr 11 10:39:36 2012 -0700
integrating new picasa carousel component
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
commit 6f98384c9ecbc8abe55ccfe1fc25a0c7ce22c493
Author: Valerio Virgillito <valerio@motorola.com>
Date: Tue Apr 10 14:33:00 2012 -0700
fixed the text area case issue
Text area was renamed from TextArea to Textarea
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
commit 1e83e26652266136802bc7af930379c1ecd631a6
Author: Valerio Virgillito <valerio@motorola.com>
Date: Mon Apr 9 22:10:45 2012 -0700
integrating montage v0.8 into ninja.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'node_modules/montage/ui/repetition.reel/repetition.js')
-rwxr-xr-x | node_modules/montage/ui/repetition.reel/repetition.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/node_modules/montage/ui/repetition.reel/repetition.js b/node_modules/montage/ui/repetition.reel/repetition.js index acc03747..95790bc3 100755 --- a/node_modules/montage/ui/repetition.reel/repetition.js +++ b/node_modules/montage/ui/repetition.reel/repetition.js | |||
@@ -490,7 +490,9 @@ var Repetition = exports.Repetition = Montage.create(Component, /** @lends modul | |||
490 | @param {Function} callback The callback method. | 490 | @param {Function} callback The callback method. |
491 | */ | 491 | */ |
492 | expandComponent: {value: function expandComponent(callback) { | 492 | expandComponent: {value: function expandComponent(callback) { |
493 | this._setupIterationTemplate(); | 493 | if (!this._refreshingItems) { |
494 | this._setupIterationTemplate(); | ||
495 | } | ||
494 | this._isComponentExpanded = true; | 496 | this._isComponentExpanded = true; |
495 | if (callback) { | 497 | if (callback) { |
496 | callback(); | 498 | callback(); |
@@ -542,10 +544,8 @@ var Repetition = exports.Repetition = Montage.create(Component, /** @lends modul | |||
542 | 544 | ||
543 | // called on iteration instantiation | 545 | // called on iteration instantiation |
544 | templateDidLoad: {value: function() { | 546 | templateDidLoad: {value: function() { |
545 | var range = document.createRange(), | 547 | var item = this._deserializedItem, |
546 | item = this._deserializedItem, | 548 | children = item.element.childNodes; |
547 | children = item.element.childNodes, | ||
548 | i; | ||
549 | 549 | ||
550 | item.fragment = document.createDocumentFragment(); | 550 | item.fragment = document.createDocumentFragment(); |
551 | while (children.length > 0) { | 551 | while (children.length > 0) { |
@@ -1134,8 +1134,8 @@ var Repetition = exports.Repetition = Montage.create(Component, /** @lends modul | |||
1134 | @function | 1134 | @function |
1135 | */ | 1135 | */ |
1136 | setupIterationDeserialization: {value: function() { | 1136 | setupIterationDeserialization: {value: function() { |
1137 | // Montage.defineProperty(this, "deserializeSelf", {value: this.deserializeIteration}); | 1137 | // Montage.defineProperty(this, "deserializeProperties", {value: this.deserializeIteration}); |
1138 | this.deserializeSelf = this.deserializeIteration; | 1138 | this.deserializeProperties = this.deserializeIteration; |
1139 | }}, | 1139 | }}, |
1140 | /** | 1140 | /** |
1141 | Description TODO | 1141 | Description TODO |
@@ -1214,13 +1214,13 @@ var Repetition = exports.Repetition = Montage.create(Component, /** @lends modul | |||
1214 | @param {Property} serializer TODO | 1214 | @param {Property} serializer TODO |
1215 | */ | 1215 | */ |
1216 | serializeIteration: {value: function(serializer) { | 1216 | serializeIteration: {value: function(serializer) { |
1217 | serializer.set("element", this.element); | 1217 | serializer.setProperty("element", this.element); |
1218 | var childComponents = this.childComponents; | 1218 | var childComponents = this.childComponents; |
1219 | for (var i = 0, l = childComponents.length; i < l; i++) { | 1219 | for (var i = 0, l = childComponents.length; i < l; i++) { |
1220 | serializer.addObject(childComponents[i]); | 1220 | serializer.addObject(childComponents[i]); |
1221 | } | 1221 | } |
1222 | // iterations are already expanded | 1222 | // iterations are already expanded |
1223 | serializer.set("_isComponentExpanded", true); | 1223 | serializer.setProperty("_isComponentExpanded", true); |
1224 | }}, | 1224 | }}, |
1225 | /** | 1225 | /** |
1226 | Description TODO | 1226 | Description TODO |