Commit 80522848 authored by Sam Saccone's avatar Sam Saccone

Merge pull request #1406 from tastejs/sjs/fix-vanilla-spec-issue

Fix vanillajs spec compliance error
parents 353b9e97 1bdd5da8
......@@ -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