You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2018. It is now read-only.
If we fall into the first clause, there's no opportunity for factory() to run. So the methods never get added to Highcharts.Chart.prototype. On the other hand...
By assigning the factory to module.exports, this will run in a CommonJS environment. The only case where I can see this failing is if you have defined an object called module, containing a property called exports, and it is not CommonJS.
This patterns is consistent with how it is done for example in jQuery.
@unitymarc I am not sure if you are using Node.js, but if so you will have to execute the Highcharts modules after requiring them. Examples below.
varHighcharts=require('highcharts');// Require and execute export csv modulerequire('_path_to_export_csv')(Highcharts);// Alternative method, store the Exports CSV factory function to execute it on a later stage.varHighcharts=require('highcharts');// Require and and store export csv factory functionvarExportCSV=require('_path_to_export_csv');// Execute the factory functionExportCSV(Highcharts);
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This commit...
2210b5d
...seems to break export-csv for me. Maybe I'm being an idiot?
If we fall into the first clause, there's no opportunity for factory() to run. So the methods never get added to Highcharts.Chart.prototype. On the other hand...
Works just fine for me. Apologies if I'm being thick.
The text was updated successfully, but these errors were encountered: