Skip to content

Commit

Permalink
Fix error for situations when periodSelector was not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
martynasma committed May 26, 2015
1 parent 253c94b commit ee7062c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dataloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ AmCharts.addInitHandler( function( chart ) {
}

// restore default period
if ( 'stock' === chart.type && !options.reloading )
if ( 'stock' === chart.type && !options.reloading && undefined !== chart.periodSelector )
chart.periodSelector.setDefaultPeriod();

// remove curtain
Expand Down
2 changes: 1 addition & 1 deletion dataloader.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ee7062c

Please sign in to comment.