reverted comp index fix
diff --git a/player/js/utils/expressions/CompInterface.js b/player/js/utils/expressions/CompInterface.js
index 0a2f2ae..99121e0 100644
--- a/player/js/utils/expressions/CompInterface.js
+++ b/player/js/utils/expressions/CompInterface.js
@@ -1,9 +1,9 @@
-var CompExpressionInterface = (function (){
- return function(comp){
- function _thisLayerFunction(name){
- var i=0, len = comp.layers.length;
- while(i<len){
- if(comp.layers[i].nm === name || comp.layers[i].ind === name){
+var CompExpressionInterface = (function () {
+ return function(comp) {
+ function _thisLayerFunction(name) {
+ var i = 0, len = comp.layers.length;
+ while ( i < len) {
+ if (comp.layers[i].nm === name || comp.layers[i].ind === name) {
return comp.elements[i].layerInterface;
}
i += 1;
@@ -11,13 +11,13 @@
return null;
//return {active:false};
}
- Object.defineProperty(_thisLayerFunction, "_name", { value:comp.data.nm });
+ Object.defineProperty(_thisLayerFunction, "_name", { value: comp.data.nm });
_thisLayerFunction.layer = _thisLayerFunction;
_thisLayerFunction.pixelAspect = 1;
_thisLayerFunction.height = comp.data.h || comp.globalData.compSize.h;
_thisLayerFunction.width = comp.data.w || comp.globalData.compSize.w;
_thisLayerFunction.pixelAspect = 1;
- _thisLayerFunction.frameDuration = 1/comp.globalData.frameRate;
+ _thisLayerFunction.frameDuration = 1 / comp.globalData.frameRate;
_thisLayerFunction.displayStartTime = 0;
_thisLayerFunction.numLayers = comp.layers.length;
return _thisLayerFunction;