Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Whitespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mutze85 committed Apr 3, 2019
1 parent c7c29c0 commit 36808bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scripts/js/es6/common/vuecomponents/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const TEMPLATE =`
class ComponentState {
/**
* Serializable state of this component.
*
*
* @param {Object} tableState
*/
constructor(tableState) {
Expand Down Expand Up @@ -89,21 +89,21 @@ Vue.component('flamenco-app', {
},
/**
* Save table state to localStorage per project and context
* @param {Object} newState
* @param {Object} newState
*/
onTableStateChanged(newState) {
let appState = new ComponentState(newState);
let stateJsonStr = JSON.stringify(appState);
try {
localStorage.setItem(this.stateStorageKey, stateJsonStr);
} catch (error) {
// Log and ignore.
// Log and ignore.
console.warn('Unable to save state:', error);
}
},
/**
* Called when user clicks back/forward in browser.
* @param {PopStateEvent} event
* @param {PopStateEvent} event
*/
onPopState(event) {
let state = event.state;
Expand Down

0 comments on commit 36808bc

Please sign in to comment.