You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/12/09 06:16:53 UTC

[06/31] git commit: [flex-asjs] [refs/heads/develop] - fix this pointer

fix this pointer


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

Branch: refs/heads/develop
Commit: 3dec3b03af949b581ed8dbcb49872c6a2e5623ff
Parents: b2505eb
Author: Alex Harui <ah...@apache.org>
Authored: Fri Nov 21 16:42:43 2014 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Dec 8 20:47:40 2014 -0800

----------------------------------------------------------------------
 frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3dec3b03/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js b/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
index 5b9c20c..afdbfff 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
@@ -71,7 +71,7 @@ org.apache.flex.core.CallLaterBead.prototype.callLater =
   else
     this.calls_.push({thisArg: opt_thisArg, fn: fn, args: opt_args });
 
-  window.setTimeout(this.callback, 0);
+  window.setTimeout(goog.bind(this.callback, this), 0);
 };