Add, delete, display a task in Todo

This commit is contained in:
Nicolas Lemoine
2017-07-24 16:23:53 +03:00
parent ac718b6dfa
commit f67fb32bf1
3 changed files with 56 additions and 9 deletions

View File

@@ -28,7 +28,7 @@ define([
var initialize = function (proxy) {
// run migration
if (typeof(proxy.data) !== 'object') { proxy.data = {}; }
if (Array.isArray(proxy.order)) { proxy.order = []; }
if (!Array.isArray(proxy.order)) { proxy.order = []; }
if (typeof(proxy.type) !== 'string') { proxy.type = 'todo'; }
};