constants

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

object constants;

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

Back to top