Commit 1bdd5da8 authored by Sam Saccone's avatar Sam Saccone

Fix vanillajs spec compliance error

found in: #1403
parent 353b9e97
......@@ -120,7 +120,9 @@
*/
Controller.prototype.editItemSave = function (id, title) {
var self = this;
if (title.trim()) {
title = title.trim();
if (title.length !== 0) {
self.model.update(id, {title: title}, function () {
self.view.render('editItemDone', {id: id, title: title});
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment