Use the same function name to bind the OpenID request handler
This commit is contained in:
parent
d3268801ed
commit
21d52a8311
1 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ export default class WidgetMessaging {
|
||||||
this.target = target;
|
this.target = target;
|
||||||
this.fromWidget = global.mxFromWidgetMessaging;
|
this.fromWidget = global.mxFromWidgetMessaging;
|
||||||
this.toWidget = global.mxToWidgetMessaging;
|
this.toWidget = global.mxToWidgetMessaging;
|
||||||
this._openIdHandlerRef = this._onOpenIdRequest.bind(this);
|
this._onOpenIdRequest = this._onOpenIdRequest.bind(this);
|
||||||
this.start();
|
this.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,12 +115,12 @@ export default class WidgetMessaging {
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
this.fromWidget.addEndpoint(this.widgetId, this.widgetUrl);
|
this.fromWidget.addEndpoint(this.widgetId, this.widgetUrl);
|
||||||
this.fromWidget.addListener("get_openid", this._openIdHandlerRef);
|
this.fromWidget.addListener("get_openid", this._onOpenIdRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
this.fromWidget.removeEndpoint(this.widgetId, this.widgetUrl);
|
this.fromWidget.removeEndpoint(this.widgetId, this.widgetUrl);
|
||||||
this.fromWidget.removeListener("get_openid", this._openIdHandlerRef);
|
this.fromWidget.removeListener("get_openid", this._onOpenIdRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
async _onOpenIdRequest(ev, rawEv) {
|
async _onOpenIdRequest(ev, rawEv) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue