diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-06 21:55:47 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-07 10:09:12 -0700 |
commit | bd7db31b42e5f445a0d36bc5cf79e119a4f90fdf (patch) | |
tree | 337e62285b241a7c2cbce1861854334d272431cb /src | |
parent | 32dc04d8d17fb7cc4122d692c8fa1ba661a33803 (diff) |
add missing return values in safeRequestAnimationFrame,safeSetTimeout,safeSetInterval
Diffstat (limited to 'src')
-rw-r--r-- | src/library_browser.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library_browser.js b/src/library_browser.js index a690286b..9800fedf 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -371,17 +371,17 @@ mergeInto(LibraryManager.library, { // abort-aware versions safeRequestAnimationFrame: function(func) { - Browser.requestAnimationFrame(function() { + return Browser.requestAnimationFrame(function() { if (!ABORT) func(); }); }, safeSetTimeout: function(func, timeout) { - setTimeout(function() { + return setTimeout(function() { if (!ABORT) func(); }, timeout); }, safeSetInterval: function(func, timeout) { - setInterval(function() { + return setInterval(function() { if (!ABORT) func(); }, timeout); }, |