Skip to content

Commit 5e6be43

Browse files
authored
Merge pull request #42 from yappbox/bug/stop-listening
When recomputing {{emitter-action}} call stopListening *before* overwriting local properties
2 parents 3e28a75 + 96e8adf commit 5e6be43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/helpers/emitter-action.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ export default class extends Helper {
88
assert('[emitter-action helper] Must specify an emitter', emitter);
99
assert('[emitter-action helper] Must specify an eventName', eventName);
1010
assert('[emitter-action helper] Must specify an action', action);
11+
this.stopListening();
1112
this.emitter = emitter;
1213
this.eventName = eventName;
1314
this.handler = action;
1415

15-
this.stopListening();
1616
this.startListening();
1717
}
1818

0 commit comments

Comments
 (0)