Skip to content

Commit

Permalink
Fix 'frame' parameter issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 10, 2018
1 parent 86d1a98 commit 3bdce97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function loading(options) {
}
if (typeof options === 'string') {
options = {
text: options
text: options
}
}

Expand Down Expand Up @@ -43,8 +43,8 @@ function loading(options) {
this.frameIndex = 0;
}

loading.prototype.frame = function () {
var frames = this.frames;
loading.prototype.frame = function (frame) {
var frames = frame || this.frames;
// var frames = ["◜", "◠", "◝", "◞", "◡", "◟"];
// var frames = ["◰", "◳", "◲", "◱"]
// var frames = ["◐", "◓", "◑", "◒"]
Expand Down

0 comments on commit 3bdce97

Please sign in to comment.