versioning

This commit is contained in:
Alex Yatskov 2017-01-11 19:55:51 -08:00
parent 124a2eb2b7
commit 5c1c894df9

View File

@ -17,6 +17,19 @@
*/ */
function versionOptions(options) {
const version = options.version || 0;
const fixups = [
() => {}
];
if (version < fixups.length) {
fixups[version]();
++options.version;
versionOptions(options);
}
}
function sanitizeOptions(options) { function sanitizeOptions(options) {
const defaults = { const defaults = {
activateOnStartup: true, activateOnStartup: true,