Very basic playlist support
This commit is contained in:
parent
63518483a3
commit
77b24d58cb
6 changed files with 149 additions and 0 deletions
|
|
@ -75,3 +75,13 @@ function format(s, d) {
|
|||
return (k in d) ? d[k] : m;
|
||||
});
|
||||
}
|
||||
|
||||
function atMostOnce(callback) {
|
||||
var called = false;
|
||||
return function () {
|
||||
if (!called) {
|
||||
called = true;
|
||||
callback();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue