mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-13 03:57:07 +00:00
Enable forced frame updates in CPViewAnimator
This commit is contained in:
1 parent
184d63f7eb
commit
fb2fe3eb63
2 files changed
+2
-5
No files matched your search
@@ -169,8 +169,6 @@ var _CPAnimationContextStack = nil,
|
||||
{
|
||||
[self stopFrameUpdaterWithIdentifier:objectId];
|
||||
|
||||
if ([anObject respondsToSelector:@selector(_setForceUpdates:)])
|
||||
[anObject _setForceUpdates:YES];
|
||||
}
|
||||
|
||||
if (animationCompletion)
|
||||
@@ -179,9 +177,6 @@ var _CPAnimationContextStack = nil,
|
||||
if (needsPeriodicFrameUpdates || animationCompletion)
|
||||
[[CPRunLoop currentRunLoop] performSelectors];
|
||||
|
||||
if (needsPeriodicFrameUpdates && [anObject respondsToSelector:@selector(_setForceUpdates:)])
|
||||
[anObject _setForceUpdates:NO];
|
||||
|
||||
if (_completionHandlerAgent)
|
||||
_completionHandlerAgent.decrement();
|
||||
};
|
||||
|
||||
@@ -63,7 +63,9 @@
|
||||
{
|
||||
var handler = function()
|
||||
{
|
||||
[_target _setForceUpdates:YES];
|
||||
[_target performSelector:aSelector withObject:aTargetValue];
|
||||
[_target _setForceUpdates:NO];
|
||||
};
|
||||
|
||||
[self _setTargetValue:aTargetValue withKeyPath:aKeyPath fallback:handler completion:handler];
|
||||
|
||||
Reference in new issue
Block a user