mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 05:31:03 +00:00
Update std.js
This commit is contained in:
parent
7df4fde106
commit
0bc9249feb
|
@ -169,13 +169,13 @@ function rotate(target, callback, onError) {
|
||||||
while (!stop) {
|
while (!stop) {
|
||||||
try {
|
try {
|
||||||
if (typeof callback === "function") {
|
if (typeof callback === "function") {
|
||||||
stop = callback(i, arr[i]);
|
stop = !callback(i, arr[i]);
|
||||||
} else {
|
} else {
|
||||||
stop = true;
|
stop = true;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (typeof onError === "function")
|
if (typeof onError === "function")
|
||||||
stop = onError(e);
|
stop = !onError(e);
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user