mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 00:45:14 +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) {
|
||||
try {
|
||||
if (typeof callback === "function") {
|
||||
stop = callback(i, arr[i]);
|
||||
stop = !callback(i, arr[i]);
|
||||
} else {
|
||||
stop = true;
|
||||
}
|
||||
} catch (e) {
|
||||
if (typeof onError === "function")
|
||||
stop = onError(e);
|
||||
stop = !onError(e);
|
||||
;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user