Fixed duplicate variable warnings
git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@839 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
parent
a4b4acef12
commit
5465fadcdc
@ -130,8 +130,8 @@ package org.bigbluebutton.modules.presentation.view.fisheye.controls
|
|||||||
populateMajorAxisFor(_pdata.slice(0,targetIndex),targetIndex,targetPosition - defaultSpacingWithDefault,major);
|
populateMajorAxisFor(_pdata.slice(0,targetIndex),targetIndex,targetPosition - defaultSpacingWithDefault,major);
|
||||||
pdata = _pdata[targetIndex - 1];
|
pdata = _pdata[targetIndex - 1];
|
||||||
var offset:Number = targetPosition - (pdata[major.pos] + pdata[major.EOM] * pdata.scale + defaultSpacingWithDefault);
|
var offset:Number = targetPosition - (pdata[major.pos] + pdata[major.EOM] * pdata.scale + defaultSpacingWithDefault);
|
||||||
for(i = 0;i<targetIndex;i++)
|
for(var y:int = 0;y<targetIndex;y++)
|
||||||
_pdata[i][major.pos] += offset;
|
_pdata[y][major.pos] += offset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for(i=0;i<itemCount;i++)
|
for(i=0;i<itemCount;i++)
|
||||||
|
@ -251,11 +251,11 @@ package org.bigbluebutton.modules.presentation.view.fisheye.controls.fisheyeClas
|
|||||||
renderers = [];
|
renderers = [];
|
||||||
|
|
||||||
// allocate new renderers, assign the data.
|
// allocate new renderers, assign the data.
|
||||||
for(i = 0;i<_items.length;i++)
|
for(var r:int = 0;r<_items.length;r++)
|
||||||
{
|
{
|
||||||
var renderer:UIComponent = _itemRendererFactory.newInstance();
|
var renderer:UIComponent = _itemRendererFactory.newInstance();
|
||||||
IDataRenderer(renderer).data = _items[i];
|
IDataRenderer(renderer).data = _items[r];
|
||||||
renderers[i] = renderer;
|
renderers[r] = renderer;
|
||||||
addChild(renderer);
|
addChild(renderer);
|
||||||
}
|
}
|
||||||
animator.items = renderers;
|
animator.items = renderers;
|
||||||
@ -502,6 +502,7 @@ package org.bigbluebutton.modules.presentation.view.fisheye.controls.fisheyeClas
|
|||||||
var majorAlignValue:String = getStyle(axis.align);
|
var majorAlignValue:String = getStyle(axis.align);
|
||||||
var itemCount:int = pdata.length;
|
var itemCount:int = pdata.length;
|
||||||
var pdataInst:FisheyeItem;
|
var pdataInst:FisheyeItem;
|
||||||
|
var offset:Number;
|
||||||
|
|
||||||
if(itemCount == 0)
|
if(itemCount == 0)
|
||||||
return;
|
return;
|
||||||
@ -511,7 +512,7 @@ package org.bigbluebutton.modules.presentation.view.fisheye.controls.fisheyeClas
|
|||||||
case "right":
|
case "right":
|
||||||
case "bottom":
|
case "bottom":
|
||||||
pdataInst = pdata[itemCount-1];
|
pdataInst = pdata[itemCount-1];
|
||||||
var offset:Number = this[axis.unscaled] - (pdataInst[axis.pos] + pdata[itemCount-1][axis.EOM] * pdataInst.scale);
|
offset = this[axis.unscaled] - (pdataInst[axis.pos] + pdata[itemCount-1][axis.EOM] * pdataInst.scale);
|
||||||
for(var i:int = 0;i<itemCount;i++)
|
for(var i:int = 0;i<itemCount;i++)
|
||||||
{
|
{
|
||||||
pdata[i][axis.pos] += offset;
|
pdata[i][axis.pos] += offset;
|
||||||
@ -522,15 +523,14 @@ package org.bigbluebutton.modules.presentation.view.fisheye.controls.fisheyeClas
|
|||||||
break;
|
break;
|
||||||
case "center":
|
case "center":
|
||||||
default:
|
default:
|
||||||
var offset:Number;
|
|
||||||
var midIndex:int = Math.floor(itemCount/2);
|
var midIndex:int = Math.floor(itemCount/2);
|
||||||
|
|
||||||
pdataInst = pdata[itemCount-1];
|
pdataInst = pdata[itemCount-1];
|
||||||
var rightPos:Number = pdataInst[axis.pos] + pdataInst[axis.EOM]*pdataInst.scale;
|
var rightPos:Number = pdataInst[axis.pos] + pdataInst[axis.EOM]*pdataInst.scale;
|
||||||
offset = (this[axis.unscaled]/2 - (rightPos)/2);
|
offset = (this[axis.unscaled]/2 - (rightPos)/2);
|
||||||
for(var i:int = 0;i<itemCount;i++)
|
for(var g:int = 0;g<itemCount;g++)
|
||||||
{
|
{
|
||||||
pdata[i][axis.pos] += offset;
|
pdata[g][axis.pos] += offset;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user