mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-15 15:11:28 +00:00
Enable forced frame updates in CPViewAnimator
This commit is contained in:
@@ -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