todo.js revision a86099fe545ea13059056f99c3b73df5f98127ed
// -- Model --------------------------------------------------------------------
toggleDone: function () {
}
}, {
ATTRS: {
}
});
// -- ModelList ----------------------------------------------------------------
comparator: function (model) {
},
done: function () {
var done = [];
return done;
},
remaining: function () {
var remaining = [];
return remaining;
}
});
// -- 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 () {
},
save: function () {
},
toggleDone: function () {
this.model.toggleDone();
}
});
events: {
},
initializer: function (config) {
},
render: function () {
return this;
}
}));
if ( ! numDone) {
}
return this;
},
// -- Event Handlers -------------------------------------------------------
add: function (e) {
},
create: function (e) {
});
}
},
refresh: function (e) {
});
},
clearCompleted: function (e) {
});
this.render();
}
});
// -- 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 modelHash;
}
// `this` refers to the Model or ModelList instance to which this sync
// method is attached. `store` refers to the LocalStorageSync instance.
hash;
}
switch (action) {
case 'create': // intentional fallthru
case 'update':
return;
case 'read':
return;
case 'delete':
return;
}
};
}