Skip to content

Commit 819488e

Browse files
committed
Removed obselete function to check FusionCharts constructor, using id attribute instead
1 parent b5219dc commit 819488e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/angular2-fusioncharts/src/fusioncharts.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export class FusionChartsService {
3737
}
3838

3939
resolveFusionCharts(core: any, modules: any[]) {
40-
if (core && core.getCurrentRenderer &&
41-
core.getCurrentRenderer() === 'javascript') {
40+
if (core && core.id &&
41+
core.id === 'FusionCharts') {
4242
this._fusionchartsStatice = core;
4343
} else {
4444
this._fusionchartsStatice = core();

0 commit comments

Comments
 (0)