Skip to content

Commit

Permalink
fix(components): Composite Editor Clone was sometime throwing error (#…
Browse files Browse the repository at this point in the history
…513)

- when we were coming from another page, the basic Slickgrid-Universal `containerService` was acting funny, the fix is to register it in as singleton but only in the immediate container
  • Loading branch information
ghiscoding committed Jan 29, 2021
1 parent c90cd4f commit c284799
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/aurelia-slickgrid/services/container.service.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { ContainerInstance, ContainerService as UniversalContainerService } from '@slickgrid-universal/common';
import { Container, inject } from 'aurelia-framework';
import { ContainerService as UniversalContainerService } from '@slickgrid-universal/common';
import { Container, inject, singleton } from 'aurelia-framework';

@inject(Container)
@singleton(true)
export class ContainerService implements UniversalContainerService {
dependencies: ContainerInstance[] = [];

constructor(private readonly container: Container) { }

get<T = any>(key: string): T | null {
Expand Down

0 comments on commit c284799

Please sign in to comment.