Update std.js

This commit is contained in:
Namhyeon Go 2022-03-03 14:41:20 +09:00 committed by GitHub
parent 90f8ce6cd9
commit 7aac52026f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ function repeat(target, callback, onError) {
}
} catch (e) {
if (typeof onError === "function") {
if (onError(e) === false) {
if (onError(e, i) === false) {
break;
}
}
@ -154,7 +154,7 @@ function repeat(target, callback, onError) {
;
} catch (e) {
if (typeof onError === "function")
if (onError(e) === false)
if (onError(e, i, arr[i]) === false)
break
;
;
@ -179,7 +179,7 @@ function rotate(target, callback, onError) {
}
} catch (e) {
if (typeof onError === "function")
stop = onError(e);
stop = onError(e, i, arr[i]);
;
}