mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-26 08:25:52 +00:00
fixed: mixup of variable definitions
This commit is contained in:
1 parent
5f1007dcbc
commit
51b633f0d7
1 file changed
+10
-16
@@ -273,12 +273,16 @@ var _CPAnimationContextStack = nil,
|
||||
|
||||
- (void)getAnimations:(CPArray)cssAnimations getTimers:(CPArray)timers usingAction:(Object)anAction cssAnimate:(BOOL)needsCSSAnimation
|
||||
{
|
||||
var values = anAction.values,
|
||||
keyPath = anAction.keypath,
|
||||
isFrameKeyPath = (keyPath == @"frame" || keyPath == @"frameSize"),
|
||||
customLayout = [aTargetView hasCustomLayoutSubviews],
|
||||
customDrawing = [aTargetView hasCustomDrawRect],
|
||||
needsPeriodicFrameUpdates = (isFrameKeyPath || [[aTargetView animator] wantsPeriodicFrameUpdates]);
|
||||
var targetView = anAction.object,
|
||||
values = anAction.values,
|
||||
keyPath = anAction.keypath,
|
||||
isFrameKeyPath = (keyPath == @"frame" || keyPath == @"frameSize"),
|
||||
customLayout = [targetView hasCustomLayoutSubviews],
|
||||
customDrawing = [targetView hasCustomDrawRect],
|
||||
declarative_subviews_layout = (!customLayout || [targetView implementsSelector:@selector(frameRectOfView:inSuperviewSize:)]),
|
||||
needsPeriodicFrameUpdates = [[targetView animator] needsPeriodicFrameUpdatesForKeyPath:keyPath],
|
||||
timer = nil,
|
||||
animatorClass = [[targetView class] animatorClass];
|
||||
|
||||
if (values.length == 2)
|
||||
{
|
||||
@@ -291,16 +295,6 @@ var _CPAnimationContextStack = nil,
|
||||
return;
|
||||
}
|
||||
|
||||
var targetView = anAction.object,
|
||||
keyPath = anAction.keypath,
|
||||
isFrameKeyPath = (keyPath == @"frame" || keyPath == @"frameSize"),
|
||||
customLayout = [targetView hasCustomLayoutSubviews],
|
||||
customDrawing = [targetView hasCustomDrawRect],
|
||||
declarative_subviews_layout = (!customLayout || [targetView implementsSelector:@selector(frameRectOfView:inSuperviewSize:)]),
|
||||
needsPeriodicFrameUpdates = [[targetView animator] needsPeriodicFrameUpdatesForKeyPath:keyPath],
|
||||
timer = nil,
|
||||
animatorClass = [[targetView class] animatorClass];
|
||||
|
||||
if (needsCSSAnimation)
|
||||
{
|
||||
[animatorClass addAnimations:cssAnimations forAction:anAction];
|
||||
|
||||
Reference in new issue
Block a user