mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
make asyncMethod return the setTimeout handle
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user