Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit 96bb7e6

Browse files
committed
WIP: HACK: make angular recognize ES6 constructor as a function.
This doesn't currently work right since Angular illegally calls the constructor via apply() without "new". Known Angular issue: angular/angular.js#12597
1 parent c004b3f commit 96bb7e6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

client/components/container/container-service.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,4 +253,10 @@ explorer.components.container.ContainerService = class {
253253
};
254254
const ContainerService = explorer.components.container.ContainerService;
255255

256+
ContainerService.__stringVal = ContainerService.toString();
257+
258+
ContainerService.toString = function() {
259+
return ContainerService.__stringVal.replace(/class\s*{\s*constructor/, 'function');
260+
};
261+
256262
}); // goog.scope

0 commit comments

Comments
 (0)