1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-19 06:47:00 +02:00

Responded to feedback

1. Moved comment above a line to ensure that
   maximum line length of 80 characters is not breached.

2. Removed a mistaken ()=> which was left behind (that would have
   introduced the exact problem this change was intended to solve.)
This commit is contained in:
Archis Gore 2016-07-14 15:11:55 -07:00
parent 86ef087310
commit 8d7a7d77e6

View file

@ -38,7 +38,9 @@ export class Hash {
}
this.lastHash = location.hash;
this.boundSync = this.sync.bind(this); //Store a bound sync wrapper for future use.
//Store a bound sync wrapper for future use.
this.boundSync = this.sync.bind(this);
this.emitter.on(['state-changed'], (tf, state) => this.update(state));
this.emitter.on(['initialized'], this.boundSync);
@ -91,8 +93,8 @@ export class Hash {
*/
destroy() {
this.emitter.off(['state-changed'], (tf, state) => this.update(state));
this.emitter.off(['initialized'], () => this.boundSync);
removeEvt(root, 'hashchange', () => this.boundSync);
this.emitter.off(['initialized'], this.boundSync);
removeEvt(root, 'hashchange', this.boundSync);
this.state = null;
this.lastHash = null;