diff options
Diffstat (limited to 'js/panels')
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index 6155ce3b..43ffaab2 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | |||
@@ -1239,6 +1239,9 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
1239 | for (j = 0; j < arrLayersLength; j++) { | 1239 | for (j = 0; j < arrLayersLength; j++) { |
1240 | if (this.arrLayers[j].layerData.stageElement == currentTest) { | 1240 | if (this.arrLayers[j].layerData.stageElement == currentTest) { |
1241 | this.arrLayers.splice(j, 1); | 1241 | this.arrLayers.splice(j, 1); |
1242 | // Super-secret magic trick: Now that we've spliced out an element, | ||
1243 | // arrLayers.length is different. We need to update it. | ||
1244 | arrLayersLength = this.arrLayers.length; | ||
1242 | } | 1245 | } |
1243 | } | 1246 | } |
1244 | } | 1247 | } |