aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
diff options
context:
space:
mode:
authorKruti Shah2012-06-27 12:40:22 -0700
committerKruti Shah2012-06-27 12:40:22 -0700
commitf57b0fe3640dbb4aa2e355d165225bc267c134c2 (patch)
tree06ce918af1a702bff44a32a7699014be3b6406a0 /js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
parent18231c8342e7dac7547842c8a2007ac7ecd046df (diff)
downloadninja-f57b0fe3640dbb4aa2e355d165225bc267c134c2.tar.gz
Bug Fix : PI changes in Position updates the hottest in timeline & Keyframes deselection help apply style property
Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js19
1 files changed, 18 insertions, 1 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 12b481de..50171260 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -1215,8 +1215,24 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
1215 boolContinue = false, 1215 boolContinue = false,
1216 arrSelectedLayers = false, 1216 arrSelectedLayers = false,
1217 arrCurrentElementsSelected = []; 1217 arrCurrentElementsSelected = [];
1218 var matchedValues = 0;
1219
1220 for(i=0;i<arrSelectedIndexesLength;i++){
1221 for(j=0;j<currentLayersSelectedLength;j++){
1222
1223 if(this.arrLayers[arrSelectedIndexes[i]] === this.arrLayers[this.currentLayerSelected[j]]){
1224 matchedValues+=1;
1225 }
1226 }
1227 }
1228
1229 if(matchedValues === arrSelectedIndexesLength){
1230 return;
1231 }
1232
1218 /* 1233 /*
1219 // TODO: this should probably check to see if it actually needs to run. 1234 // TODO: this should probably check to see if it actually needs to run.
1235
1220 console.log(arrSelectedIndexes); 1236 console.log(arrSelectedIndexes);
1221 console.log(this.currentLayersSelected); 1237 console.log(this.currentLayersSelected);
1222 // Compare arrSelectedIndexes with this.currentLayersSelected 1238 // Compare arrSelectedIndexes with this.currentLayersSelected
@@ -1258,7 +1274,8 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
1258 } 1274 }
1259 1275
1260 // Deselect any tweens 1276 // Deselect any tweens
1261 this.deselectTweens(); 1277 this.deselectTweens();
1278
1262 1279
1263 // If we are actually going to be selecting things, create an empty array to use 1280 // If we are actually going to be selecting things, create an empty array to use
1264 if (arrSelectedIndexesLength > 0) { 1281 if (arrSelectedIndexesLength > 0) {