4_Bug fixing - MoSanogo/Project-8- GitHub Wiki
Following list presents bugs and the way they were corrected:
- in controller.js:
Found
Controller.prototype.adddItem
Replaced with
Controller.prototype.addItem
- in store.js: This bug is not a bug in itself but when left without a fix ,it can cause duplicated ID and then the bad behavior of the app.
Found
for (var i = 0; i < 6; i++) { newId += charset.charAt(Math.floor(Math.random() * charset.length)); }
Replaced with
var newId = Date.now()