make asyncMethod return the setTimeout handle

This commit is contained in:
Scott Miles
2012-11-05 18:40:17 -08:00
parent 2dd3d5c867
commit 8013d1a1f4

View File

@@ -379,7 +379,7 @@ license that can be found in the LICENSE file.
// asyncMethod impl
var asyncMethod = function(inMethod, inArgs, inTimeout) {
window.setTimeout(function() {
return window.setTimeout(function() {
this[inMethod].apply(this, inArgs);
}.bind(this), inTimeout || 0);
};