equal
deleted
inserted
replaced
2 |
2 |
3 var onload_complete = false; |
3 var onload_complete = false; |
4 |
4 |
5 function mdgInnerLoader(e) |
5 function mdgInnerLoader(e) |
6 { |
6 { |
7 window.onkeydown = isKeyPressed; |
7 window.onkeydown = isKeyPressed; |
8 window.onkeyup = function(e) { isKeyPressed(e); }; |
8 window.onkeyup = function(e) { isKeyPressed(e); }; |
9 |
9 |
10 if ( typeof(dbx_set_key) == 'function') |
10 if ( typeof(dbx_set_key) == 'function') |
11 { |
11 { |
12 dbx_set_key(); |
12 dbx_set_key(); |
13 } |
13 } |
14 |
14 |
15 runOnloadHooks(e); |
15 runOnloadHooks(e); |
16 } |
16 } |
17 |
17 |
18 // Enano's main init function. |
18 // Enano's main init function. |
19 function enano_init(e) |
19 function enano_init(e) |
20 { |
20 { |
21 mdgInnerLoader(e); |
21 mdgInnerLoader(e); |
22 |
22 |
23 // we're loaded; set flags to true |
23 // we're loaded; set flags to true |
24 console.info('Enano::JS runtime: system init complete'); |
24 console.info('Enano::JS runtime: system init complete'); |
25 onload_complete = true; |
25 onload_complete = true; |
26 } |
26 } |
27 |
27 |
28 // don't init the page if less than IE6 |
28 // don't init the page if less than IE6 |
29 if ( typeof(KILL_SWITCH) == 'boolean' && !KILL_SWITCH ) |
29 if ( typeof(KILL_SWITCH) == 'boolean' && !KILL_SWITCH ) |
30 { |
30 { |
31 window.onload = enano_init; |
31 window.onload = enano_init; |
32 } |
32 } |
33 |
33 |