Skip to content

Commit bd7db31

Browse files
committed
add missing return values in safeRequestAnimationFrame,safeSetTimeout,safeSetInterval
1 parent 32dc04d commit bd7db31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/library_browser.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -371,17 +371,17 @@ mergeInto(LibraryManager.library, {
371371

372372
// abort-aware versions
373373
safeRequestAnimationFrame: function(func) {
374-
Browser.requestAnimationFrame(function() {
374+
return Browser.requestAnimationFrame(function() {
375375
if (!ABORT) func();
376376
});
377377
},
378378
safeSetTimeout: function(func, timeout) {
379-
setTimeout(function() {
379+
return setTimeout(function() {
380380
if (!ABORT) func();
381381
}, timeout);
382382
},
383383
safeSetInterval: function(func, timeout) {
384-
setInterval(function() {
384+
return setInterval(function() {
385385
if (!ABORT) func();
386386
}, timeout);
387387
},

0 commit comments

Comments
 (0)