Use key to retrieve default

This commit is contained in:
Pete Richards
2016-08-05 14:44:18 -07:00
parent af7954c5a1
commit 46e644e6dc
6 changed files with 21 additions and 54 deletions

View File

@ -67,23 +67,14 @@ define([
return this._tickSources;
};
LocalTimeSystem.prototype.defaults = function () {
LocalTimeSystem.prototype.defaults = function (key) {
var now = Math.ceil(Date.now() / 1000) * 1000;
return [
{
key: 'local-default',
name: 'Local 12 hour time system defaults',
mode: 'fixed',
bounds: {start: now - ONE_HOUR, end: now}
},
{
key: 'local-default',
name: 'Local 12 hour time system defaults',
mode: 'follow',
deltas: {start: THIRTY_MINUTES, end: 0},
bounds: {start: now - THIRTY_MINUTES, end: now}
}
];
return {
key: 'local-default',
name: 'Local 12 hour time system defaults',
deltas: {start: THIRTY_MINUTES, end: 0},
bounds: {start: now - THIRTY_MINUTES, end: now}
};
};
return LocalTimeSystem;