mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Update std.js
This commit is contained in:
parent
90f8ce6cd9
commit
7aac52026f
|
@ -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]);
|
||||
;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user