mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-06 04:35:32 +00:00
fixed: variable scope issues
This commit is contained in:
1 parent
9442f6b7d7
commit
8950c4f0e3
2 files changed
+10
-9
No files matched your search
@@ -2,15 +2,15 @@
|
||||
@import "CAPropertyAnimation.j"
|
||||
|
||||
// Value calculation modes
|
||||
var kCAAnimationLinear = @"linear";
|
||||
var kCAAnimationDiscrete = @"discrete";
|
||||
var kCAAnimationPaced = @"paced";
|
||||
var kCAAnimationCubic = @"cubic";
|
||||
var kCAAnimationCubicPaced = @"cubicPaced";
|
||||
kCAAnimationLinear = @"linear";
|
||||
kCAAnimationDiscrete = @"discrete";
|
||||
kCAAnimationPaced = @"paced";
|
||||
kCAAnimationCubic = @"cubic";
|
||||
kCAAnimationCubicPaced = @"cubicPaced";
|
||||
|
||||
// Rotation Mode Values
|
||||
var kCAAnimationRotateAuto = @"auto";
|
||||
var kCAAnimationRotateAutoReverse = @"autoReverse";
|
||||
kCAAnimationRotateAuto = @"auto";
|
||||
kCAAnimationRotateAutoReverse = @"autoReverse";
|
||||
|
||||
@implementation CAKeyframeAnimation : CAPropertyAnimation
|
||||
{
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
@import <Foundation/Foundation.j>
|
||||
@import <AppKit/AppKit.j>
|
||||
@import <AppKit/CAKeyframeAnimation.j>
|
||||
|
||||
#define UIAssert(a) [self markTest:_cmd didPass:a];
|
||||
|
||||
@@ -137,8 +138,8 @@
|
||||
var endPoint = CGPointMake(p1.x, p1.y - 100);
|
||||
|
||||
var discreteAnimation = [CAKeyframeAnimation animationWithKeyPath:@"frameOrigin"];
|
||||
[discreteAnimation setValues:[CPArray arrayWithJSArray:[p1, p2, p3, endPoint]]];
|
||||
[discreteAnimation setKeyTimes:[CPArray arrayWithJSArray:[0, 0.33, 0.66, 1.0]]];
|
||||
[discreteAnimation setValues:[p1, p2, p3, endPoint]];
|
||||
[discreteAnimation setKeyTimes:[0, 0.33, 0.66, 1.0]];
|
||||
[discreteAnimation setCalculationMode:kCAAnimationDiscrete];
|
||||
|
||||
[CPAnimationContext beginGrouping];
|
||||
|
||||
Reference in new issue
Block a user