From 6f082dd9e7b7cd9cd0fba6590282d4ce46032c70 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Thu, 25 Aug 2016 14:23:41 -0700 Subject: [PATCH] Linted --- ui/lib/persistent-form.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/lib/persistent-form.js b/ui/lib/persistent-form.js index 537cfb1ce..2fd7600a2 100644 --- a/ui/lib/persistent-form.js +++ b/ui/lib/persistent-form.js @@ -1,7 +1,7 @@ const inherits = require('util').inherits const Component = require('react').Component const defaultKey = 'persistent-form-default' -const eventName = 'keyup'//.persistent-form-change'//.persistent-form-change' +const eventName = 'keyup' module.exports = PersistentForm @@ -16,7 +16,6 @@ PersistentForm.prototype.componentDidMount = function () { const store = this.getPersistentStore() fields.forEach((field) => { const key = field.getAttribute('data-persistent-formid') - const val = field.value const cached = store[key] if (cached !== undefined) { field.value = cached @@ -51,7 +50,6 @@ PersistentForm.prototype.persistentFieldDidUpdate = function (event) { PersistentForm.prototype.componentWillUnmount = function () { const fields = document.querySelectorAll('[data-persistent-formid]') - const store = this.getPersistentStore() fields.forEach((field) => { field.removeEventListener(eventName, this.persistentFieldDidUpdate.bind(this)) })