Commit d9abbdbd authored by Dave Methvin's avatar Dave Methvin

Shorten comments for jscs satisfaction

parent 03fb6318
...@@ -55,7 +55,7 @@ define([ ...@@ -55,7 +55,7 @@ define([
var trimmedTitle = title.trim(); var trimmedTitle = title.trim();
// Observable value changes are not triggered if they're consisting of whitespaces only // Observable value changes are not triggered if they're consisting of whitespaces only
// Therefore we've to compare untrimmed version with a trimmed one to chech whether anything changed // Therefore, compare untrimmed version with a trimmed one to check whether anything changed
// And if yes, we've to set the new value manually // And if yes, we've to set the new value manually
if (title !== trimmedTitle) { if (title !== trimmedTitle) {
item.title(trimmedTitle); item.title(trimmedTitle);
...@@ -106,7 +106,8 @@ define([ ...@@ -106,7 +106,8 @@ define([
// internal computed observable that fires whenever anything changes in our todos // internal computed observable that fires whenever anything changes in our todos
ko.computed(function () { ko.computed(function () {
// store a clean copy to local storage, which also creates a dependency on the observableArray and all observables in each item // store a clean copy to local storage, which also creates a dependency
// on the observableArray and all observables in each item
window.localStorage.setItem(g.localStorageItem, ko.toJSON(self.todos)); window.localStorage.setItem(g.localStorageItem, ko.toJSON(self.todos));
}).extend({ }).extend({
rateLimit: { timeout: 500, method: 'notifyWhenChangesStop' } rateLimit: { timeout: 500, method: 'notifyWhenChangesStop' }
......
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