Repository: flex-asjs
Updated Branches:
  refs/heads/develop b937f2671 -> 36ad928d6


SWF requestFrame should clean up after itself better.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/36ad928d
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/36ad928d
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/36ad928d

Branch: refs/heads/develop
Commit: 36ad928d6442979a7b823fb757748c422fc04340
Parents: b937f26
Author: Harbs <[email protected]>
Authored: Sun Mar 5 12:28:24 2017 +0200
Committer: Harbs <[email protected]>
Committed: Sun Mar 5 12:28:24 2017 +0200

----------------------------------------------------------------------
 .../Core/src/main/flex/org/apache/flex/utils/AnimationUtil.as     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/36ad928d/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/AnimationUtil.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/AnimationUtil.as 
b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/AnimationUtil.as
index ec89e77..28247b9 100644
--- 
a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/AnimationUtil.as
+++ 
b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/AnimationUtil.as
@@ -63,8 +63,9 @@ package org.apache.flex.utils
 
                                var uid:String  = UIDUtil.createUID();
                                var wrappedCallback:Function = 
function(event:Event):void{
-                                       callback.call(element,new 
Date().getTime());
+                                       callback.call(listener,new 
Date().getTime());
                                        requests[uid] = null;
+                                       
listener.removeEventListener(Event.ENTER_FRAME,callback);
                                };
                                requests[uid] = 
{callback:wrappedCallback,listener:listener};
                                
listener.addEventListener(Event.ENTER_FRAME,wrappedCallback);

Reply via email to