View Revisions: Issue #25952

Summary 0025952: MantisGraph: define Chart.js-related constants in the plugin
Revision 2019-08-03 09:49 by dregad
Description

The library is only used by the MantisGraph plugin, so it makes more sense to define the related constants within the plugin's class, instead of doing it in constants_inc.php.

This facilitates maintenance when the library needs to be upgraded (all significant changes happen in the Plugin's class).

Revision 2019-08-02 14:02 by dregad
Description

The library is only used by the MantisGraph plugin, so it makes more sense to define the related constants within the plugin's class, instead of doing it in constants_inc.php.

This facilitates maintenance when the library needs to be upgraded (all significant changes happen in the Plugin's class).

Defining additional constants for javascript libraries and file names simplifies the code, avoiding duplication of hardcoded strings.