Skip to content

Commit

Permalink
Task: Build the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
zya committed Jun 20, 2015
1 parent 64e85cd commit 60581c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions build/beet.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,14 @@ Beet.prototype.stop = function (when) {
}, start_time * 1000);
};

Beet.prototype.pause = function () {
this.layers.forEach(function (layer) {
layer.pause();
});
Beet.prototype.pause = function (when) {
var self = this;
var start_time = when || 0;
setTimeout(function () {
self.layers.forEach(function (layer) {
layer.pause();
});
}, start_time * 1000);
};

Beet.prototype._change_tempo = function (value) {
Expand Down
Loading

0 comments on commit 60581c2

Please sign in to comment.