fixed jshint complaints

This commit is contained in:
juliandescottes 2012-09-11 00:54:06 +02:00
parent a8394d22b1
commit 11dda9da9c
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ pskl.LocalStorageService = (function() {
// TODO(vincz): Find a good place to put this UI rendering, a service should not render UI. // TODO(vincz): Find a good place to put this UI rendering, a service should not render UI.
displayRestoreNotification: function() { displayRestoreNotification: function() {
if(window.localStorage && window.localStorage['snapShot']) { if(window.localStorage && window.localStorage.snapShot) {
var reloadLink = "<a href='#' class='localstorage-restore onclick='piskel.restoreFromLocalStorage()'>reload</a>"; var reloadLink = "<a href='#' class='localstorage-restore onclick='piskel.restoreFromLocalStorage()'>reload</a>";
var discardLink = "<a href='#' class='localstorage-discard' onclick='piskel.cleanLocalStorage()'>discard</a>"; var discardLink = "<a href='#' class='localstorage-discard' onclick='piskel.cleanLocalStorage()'>discard</a>";
var content = "Non saved version found. " + reloadLink + " or " + discardLink; var content = "Non saved version found. " + reloadLink + " or " + discardLink;

View File

@ -78,10 +78,10 @@ pskl.ToolSelector = (function() {
$("#tools-container").click(onToolIconClicked_); $("#tools-container").click(onToolIconClicked_);
// Show/hide the grid on drawing canvas: // 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) { $('#show-grid').change(function(evt) {
var checked = isShowGridChecked_(); var checked = isShowGridChecked_();
$.publish(Events.GRID_DISPLAY_STATE_CHANGED, [checked]) $.publish(Events.GRID_DISPLAY_STATE_CHANGED, [checked]);
}); });
} }
}; };