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]);
});
}
};