We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3e28a75 + 96e8adf commit 5e6be43Copy full SHA for 5e6be43
addon/helpers/emitter-action.js
@@ -8,11 +8,11 @@ export default class extends Helper {
8
assert('[emitter-action helper] Must specify an emitter', emitter);
9
assert('[emitter-action helper] Must specify an eventName', eventName);
10
assert('[emitter-action helper] Must specify an action', action);
11
+ this.stopListening();
12
this.emitter = emitter;
13
this.eventName = eventName;
14
this.handler = action;
15
- this.stopListening();
16
this.startListening();
17
}
18
0 commit comments