diff options
author | hwc487 | 2012-07-09 16:08:02 -0700 |
---|---|---|
committer | hwc487 | 2012-07-09 16:08:02 -0700 |
commit | 5085d0f67df89a21715308956004164597a6ba79 (patch) | |
tree | 2c896163143a66331205a39b0a3b1b45d51bf12a /js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js | |
parent | 51f1691f792dbda9b740ded8aa0457c9406db156 (diff) | |
parent | 84b3327bd92faafab7954b5eb64c7abe24a3fe13 (diff) | |
download | ninja-5085d0f67df89a21715308956004164597a6ba79.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into GridFixes
Conflicts:
js/helper-classes/3D/StageLine.js
Diffstat (limited to 'js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js')
-rw-r--r-- | js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js b/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js index 6c68fa63..43ff34f9 100644 --- a/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js +++ b/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js | |||
@@ -212,10 +212,10 @@ var PropertyTrack = exports.PropertyTrack = Montage.create(Component, { | |||
212 | // check if there is an editor property assigned yet | 212 | // check if there is an editor property assigned yet |
213 | // get this property track's editor prop name from layer data arrays | 213 | // get this property track's editor prop name from layer data arrays |
214 | var selectIndex = this.application.ninja.timeline.getLayerIndexByID(this.trackID), | 214 | var selectIndex = this.application.ninja.timeline.getLayerIndexByID(this.trackID), |
215 | currentSelectedStyleIndex = this.getCurrentSelectedStyleIndex(selectIndex); | 215 | currentSelectedStyleIndex = this.getCurrentSelectedStyleIndex(selectIndex); |
216 | 216 | ||
217 | if (this.trackType == "style") { | 217 | if (this.trackType == "style") { |
218 | //console.log("PropertyTrack.handleClick; selectIndex = ", selectIndex, "; styleIndex = ", currentSelectedStyleIndex) | 218 | //console.log("PropertyTrack.handleClick; selectIndex = ", selectIndex, "; styleIndex = ", currentSelectedStyleIndex) |
219 | if (this.application.ninja.timeline.arrLayers[selectIndex].layerData.arrLayerStyles[currentSelectedStyleIndex].editorProperty == null) { | 219 | if (this.application.ninja.timeline.arrLayers[selectIndex].layerData.arrLayerStyles[currentSelectedStyleIndex].editorProperty == null) { |
220 | console.log("Please enter a style property for this track before adding keyframes."); | 220 | console.log("Please enter a style property for this track before adding keyframes."); |
221 | return; | 221 | return; |
@@ -238,20 +238,20 @@ var PropertyTrack = exports.PropertyTrack = Montage.create(Component, { | |||
238 | } | 238 | } |
239 | } | 239 | } |
240 | }, | 240 | }, |
241 | 241 | ||
242 | getCurrentSelectedStyleIndex: { | 242 | getCurrentSelectedStyleIndex: { |
243 | value: function(layerIndex) { | 243 | value: function(layerIndex) { |
244 | var returnVal = false, | 244 | var returnVal = false, |
245 | i = 0, | 245 | i = 0, |
246 | arrLayerStylesLength = this.application.ninja.timeline.arrLayers[layerIndex].layerData.arrLayerStyles.length; | 246 | arrLayerStylesLength = this.application.ninja.timeline.arrLayers[layerIndex].layerData.arrLayerStyles.length; |
247 | for (i = 0; i < arrLayerStylesLength; i++) { | 247 | for (i = 0; i < arrLayerStylesLength; i++) { |
248 | var currItem = this.application.ninja.timeline.arrLayers[layerIndex].layerData.arrLayerStyles[i]; | 248 | var currItem = this.application.ninja.timeline.arrLayers[layerIndex].layerData.arrLayerStyles[i]; |
249 | if (currItem.isSelected === true) { | 249 | if (currItem.isSelected === true) { |
250 | returnVal = i; | 250 | returnVal = i; |
251 | } | 251 | } |
252 | } | 252 | } |
253 | return returnVal; | 253 | return returnVal; |
254 | } | 254 | } |
255 | }, | 255 | }, |
256 | 256 | ||
257 | handleNewPropTween:{ | 257 | handleNewPropTween:{ |