We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1fb7c6f + 5f494b3 commit d48fad8Copy full SHA for d48fad8
AltManagerMixin.js
@@ -64,16 +64,16 @@ var AltManagerMixin = {
64
throw new ReferenceError('registerAction has not been is defined')
65
}
66
67
- var storeName = Store.name
68
- var actionName = Action.name
+ var storeName = Store.displayName || Store.name
+ var actionName = Action.displayName || Action.name
69
70
this.action = props.alt.getActions(actionName)
71
this.store = props.alt.getStore(storeName)
72
73
if (!this.action) {
74
props.alt.addActions(actionName, Action)
75
76
- this.store = props.alt.createStore(Store, null, props.alt)
+ this.store = props.alt.createStore(Store, storeName, props.alt)
77
if (this.onNewAlt) {
78
this.onNewAlt(this.store.getState(), props)
79
0 commit comments