Skip to content

Commit 60581c2

Browse files
committed
Task: Build the latest version
1 parent 64e85cd commit 60581c2

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

build/beet.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,14 @@ Beet.prototype.stop = function (when) {
5858
}, start_time * 1000);
5959
};
6060

61-
Beet.prototype.pause = function () {
62-
this.layers.forEach(function (layer) {
63-
layer.pause();
64-
});
61+
Beet.prototype.pause = function (when) {
62+
var self = this;
63+
var start_time = when || 0;
64+
setTimeout(function () {
65+
self.layers.forEach(function (layer) {
66+
layer.pause();
67+
});
68+
}, start_time * 1000);
6569
};
6670

6771
Beet.prototype._change_tempo = function (value) {

0 commit comments

Comments
 (0)