diff --git a/source/Ox/js/Constants.js b/source/Ox/js/Constants.js index 2818c6ad..b2edf35b 100644 --- a/source/Ox/js/Constants.js +++ b/source/Ox/js/Constants.js @@ -53,6 +53,25 @@ Ox.KEYS = { 220: 'backslash', 221: 'closebracket', 222: 'quote', 224: 'meta' // see dojo, for ex. }, +//@ Ox.KEYWORDS <[s]> JavaScript keywords +// see https://developer.mozilla.org/en/JavaScript/Reference +Ox.KEYWORDS = [ + 'break', + 'case', 'catch', 'class', 'const', 'continue', + 'debugger', 'default', 'delete', 'do', + 'else', 'enum', 'export', 'extends', + 'false', 'finally', 'for', 'function', + 'if', 'implements', 'import', 'in', 'instanceof', 'interface', + 'let', 'module', + 'new', 'null', + 'package', 'private', 'protected', 'public', + 'return', + 'super', 'switch', 'static', + 'this', 'throw', 'true', 'try', 'typeof', + 'var', 'void', + 'yield', + 'while', 'with' +]; Ox.MAP_TILE_SIZE = 256; // fixme: definitely not needed here //@ Ox.MAX_LATITUDE Maximum latitude of a Mercator projection Ox.MAX_LATITUDE = Ox.deg(Math.atan(Ox.sinh(Math.PI)));