Skip to content

Commit

Permalink
Replace _lookupFactory() with factoryFor() (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregjopa committed Apr 1, 2017
1 parent 6a53354 commit ed1f9c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addon/utils/option-loader.js
Expand Up @@ -4,8 +4,10 @@ let localConfig = null;
export function setDefaultHighChartOptions(owner) {
if (!localConfig) {
// use options defined in highcharts-configs/application.js if they exist
let localConfigBuilder = owner._lookupFactory('highcharts-config:application');
if (localConfigBuilder) {
let configFactory = owner.factoryFor('highcharts-config:application');

if (configFactory && configFactory.class) {
let localConfigBuilder = configFactory.class;
localConfig = localConfigBuilder(defaultOptions);
} else {
localConfig = defaultOptions;
Expand Down

0 comments on commit ed1f9c7

Please sign in to comment.