diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-28 14:10:46 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-31 19:34:32 +0900 |
commit | 24c736945126625c6e099d6062bcd51a0c967e68 (patch) | |
tree | 543519ba36e4cd10cae66d2e31efd94825f84e36 /src/content/components/common | |
parent | c4996ef5d8d5d85f49732bb01b6da13b66ea81d5 (diff) |
Remove update propagation
Diffstat (limited to 'src/content/components/common')
-rw-r--r-- | src/content/components/common/follow.js | 3 | ||||
-rw-r--r-- | src/content/components/common/index.js | 9 | ||||
-rw-r--r-- | src/content/components/common/input.js | 3 | ||||
-rw-r--r-- | src/content/components/common/keymapper.js | 3 |
4 files changed, 0 insertions, 18 deletions
diff --git a/src/content/components/common/follow.js b/src/content/components/common/follow.js index 4eeaaa2..19c31eb 100644 --- a/src/content/components/common/follow.js +++ b/src/content/components/common/follow.js @@ -39,9 +39,6 @@ export default class Follow { messages.onMessage(this.onMessage.bind(this)); } - update() { - } - key(key) { if (Object.keys(this.hints).length === 0) { return false; diff --git a/src/content/components/common/index.js b/src/content/components/common/index.js index 5f5531b..4c2c1df 100644 --- a/src/content/components/common/index.js +++ b/src/content/components/common/index.js @@ -14,21 +14,12 @@ export default class Common { input.onKey(key => keymapper.key(key)); this.store = store; - this.children = [ - follow, - input, - keymapper, - ]; this.reloadSettings(); messages.onMessage(this.onMessage.bind(this)); } - update() { - this.children.forEach(c => c.update()); - } - onMessage(message) { switch (message.type) { case messages.SETTINGS_CHANGED: diff --git a/src/content/components/common/input.js b/src/content/components/common/input.js index ef5af29..8b1d35d 100644 --- a/src/content/components/common/input.js +++ b/src/content/components/common/input.js @@ -28,9 +28,6 @@ export default class InputComponent { target.addEventListener('keyup', this.onKeyUp.bind(this)); } - update() { - } - onKey(cb) { this.onKeyListeners.push(cb); } diff --git a/src/content/components/common/keymapper.js b/src/content/components/common/keymapper.js index 44d8212..1da3c0d 100644 --- a/src/content/components/common/keymapper.js +++ b/src/content/components/common/keymapper.js @@ -7,9 +7,6 @@ export default class KeymapperComponent { this.store = store; } - update() { - } - key(key) { this.store.dispatch(inputActions.keyPress(key)); |