Cache result.
This commit is contained in:
David Cook
2023-07-26 13:39:14 +10:00
committed by Jean-Baptiste Bellet
parent 200550588a
commit f4a6bec25d

View File

@@ -30,7 +30,7 @@ export default class extends ApplicationController {
};
getLoadingController = () => {
return (this.loadongController = this.application.getControllerForElementAndIdentifier(
return (this.loadingController ||= this.application.getControllerForElementAndIdentifier(
this.loadingTarget,
"loading"
));