Injection causes endless recursion

15 views
Skip to first unread message

Boaz

unread,
Jan 29, 2014, 4:48:07 AM1/29/14
to som...@googlegroups.com
Hi,

I've opened a github issue here: https://github.com/soundstep/infuse.js/issues/1

I'm using SOMA 2.0.4. I've got two classes, each injecting the other. This causes an endless loop.

in my application init function I map the injectables:

this.injector.mapClass('serviceA', ServiceA, true);
this.injector.mapClass('serviceB', ServiceB, true);

Function ServiceA(serviceB) {
/* stuff ...*/
}

Function ServiceB(serviceA) {
/* stuff ...*/
}

Is this a bug, or is it not supported by design?

Thanks

Romuald Quantin

unread,
Jan 29, 2014, 6:50:11 AM1/29/14
to som...@googlegroups.com
I answered on the ticket.

Romu
Reply all
Reply to author
Forward
0 new messages