Skip to main content

constants

Description

Stores various constants to reduce the use of magic numbers in the code

constants: any

Example

document.addEventListener("keypress", function(e){
var keys = gantt.constants.KEY_CODES;
if(e.keyCode === keys.ENTER){
// do on enter
}
});

Details

stores various constants to reduce the use of magic numbers in the code. Currently stores only KEY_CODES object