Skip to content

Commit 3bdce97

Browse files
committed
Fix 'frame' parameter issue.
1 parent 86d1a98 commit 3bdce97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function loading(options) {
88
}
99
if (typeof options === 'string') {
1010
options = {
11-
text: options
11+
text: options
1212
}
1313
}
1414

@@ -43,8 +43,8 @@ function loading(options) {
4343
this.frameIndex = 0;
4444
}
4545

46-
loading.prototype.frame = function () {
47-
var frames = this.frames;
46+
loading.prototype.frame = function (frame) {
47+
var frames = frame || this.frames;
4848
// var frames = ["◜", "◠", "◝", "◞", "◡", "◟"];
4949
// var frames = ["◰", "◳", "◲", "◱"]
5050
// var frames = ["◐", "◓", "◑", "◒"]

0 commit comments

Comments
 (0)