todo.js revision 2d8d8c68b6800e73f7024fd63a7e831a66a63446
// -- Model --------------------------------------------------------------------
toggleDone: function () {
}
}, {
ATTRS: {
}
});
// -- ModelList ----------------------------------------------------------------
comparator: function (model) {
},
done: function () {
});
},
remaining: function () {
});
}
});
// -- Views --------------------------------------------------------------------
container: '<li class="todo-item"/>',
events: {
'.todo-input' : {
blur : 'save',
keypress: 'enter'
},
},
initializer: function () {
},
render: function () {
}));
return this;
},
// -- Event Handlers -------------------------------------------------------
edit: function () {
},
enter: function (e) {
}
},
remove: function (e) {
e.preventDefault();
},
save: function () {
},
toggleDone: function () {
this.model.toggleDone();
}
});
events: {
},
initializer: function (config) {
this.render, this);
},
render: function () {
return this;
}
}));
if (!numDone) {
}
return this;
},
// -- Event Handlers -------------------------------------------------------
add: function (e) {
},
clearDone: function (e) {
e.preventDefault();
});
this.render();
},
create: function (e) {
});
}
},
refresh: function (e) {
});
}
});
// -- localStorage Sync Implementation -----------------------------------------
function LocalStorageSync(key) {
var modelHash;
save();
}
return modelHash;
}
function generateId() {
var id = '',
i = 4;
while (i--) {
}
return id;
}
}
function save() {
}
}
save();
return hash;
}
// `this` refers to the Model or ModelList instance to which this sync
// method is attached. `store` refers to the LocalStorageSync instance.
switch (action) {
case 'create': // intentional fallthru
case 'update':
return;
case 'read':
return;
case 'delete':
return;
}
};
}