Commit 828b6d1c authored by Pascal Hartig's avatar Pascal Hartig

Merge pull request #1466 from davidrunger/remove-unneeded-logic

Backbone: remove unneeded logic in todo View
parents 1567e60e 9e16caf8
......@@ -91,15 +91,6 @@ var app = app || {};
if (trimmedValue) {
this.model.save({ title: trimmedValue });
if (value !== trimmedValue) {
// Model values changes consisting of whitespaces only are
// not causing change to be triggered Therefore we've to
// compare untrimmed version with a trimmed one to check
// whether anything changed
// And if yes, we've to trigger change event ourselves
this.model.trigger('change');
}
} else {
this.clear();
}
......
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