diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-08-26 05:23:41 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-08-26 05:23:41 +0800 |
commit | 6f082dd9e7b7cd9cd0fba6590282d4ce46032c70 (patch) | |
tree | b20cfdc3dfbf09472e5ad97bd55d6353bcfa47ca | |
parent | a8e40ffe7a4e8a780fefe841ac73fe12e543f290 (diff) | |
download | tangerine-wallet-browser-6f082dd9e7b7cd9cd0fba6590282d4ce46032c70.tar tangerine-wallet-browser-6f082dd9e7b7cd9cd0fba6590282d4ce46032c70.tar.gz tangerine-wallet-browser-6f082dd9e7b7cd9cd0fba6590282d4ce46032c70.tar.bz2 tangerine-wallet-browser-6f082dd9e7b7cd9cd0fba6590282d4ce46032c70.tar.lz tangerine-wallet-browser-6f082dd9e7b7cd9cd0fba6590282d4ce46032c70.tar.xz tangerine-wallet-browser-6f082dd9e7b7cd9cd0fba6590282d4ce46032c70.tar.zst tangerine-wallet-browser-6f082dd9e7b7cd9cd0fba6590282d4ce46032c70.zip |
Linted
-rw-r--r-- | ui/lib/persistent-form.js | 4 |
1 files changed, 1 insertions, 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)) }) |