From 11dda9da9ca1efb0834e75a7e652c3898258cd38 Mon Sep 17 00:00:00 2001 From: juliandescottes Date: Tue, 11 Sep 2012 00:54:06 +0200 Subject: [PATCH] fixed jshint complaints --- js/LocalStorageService.js | 2 +- js/ToolSelector.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/LocalStorageService.js b/js/LocalStorageService.js index dcac97bb..63cc3b59 100644 --- a/js/LocalStorageService.js +++ b/js/LocalStorageService.js @@ -66,7 +66,7 @@ pskl.LocalStorageService = (function() { // TODO(vincz): Find a good place to put this UI rendering, a service should not render UI. displayRestoreNotification: function() { - if(window.localStorage && window.localStorage['snapShot']) { + if(window.localStorage && window.localStorage.snapShot) { var reloadLink = "reload"; var discardLink = "discard"; var content = "Non saved version found. " + reloadLink + " or " + discardLink; diff --git a/js/ToolSelector.js b/js/ToolSelector.js index f9f05eb7..e2a9befa 100644 --- a/js/ToolSelector.js +++ b/js/ToolSelector.js @@ -78,10 +78,10 @@ pskl.ToolSelector = (function() { $("#tools-container").click(onToolIconClicked_); // Show/hide the grid on drawing canvas: - $.publish(Events.GRID_DISPLAY_STATE_CHANGED, [isShowGridChecked_()]) + $.publish(Events.GRID_DISPLAY_STATE_CHANGED, [isShowGridChecked_()]); $('#show-grid').change(function(evt) { var checked = isShowGridChecked_(); - $.publish(Events.GRID_DISPLAY_STATE_CHANGED, [checked]) + $.publish(Events.GRID_DISPLAY_STATE_CHANGED, [checked]); }); } };