add Ox.KEYWORDS

This commit is contained in:
rolux 2012-05-26 12:55:20 +02:00
parent 5a2ecca0f1
commit 6c98a82800

View file

@ -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 <n> Maximum latitude of a Mercator projection
Ox.MAX_LATITUDE = Ox.deg(Math.atan(Ox.sinh(Math.PI)));