|
11 | 11 |
|
12 | 12 | "use strict";
|
13 | 13 |
|
14 |
| - // var J = node.JSUS; |
15 |
| - |
16 |
| - // function getElement(idOrObj, prefix) { |
17 |
| - // var el; |
18 |
| - // if ('string' === typeof idOrObj) { |
19 |
| - // el = W.getElementById(idOrObj); |
20 |
| - // } |
21 |
| - // else if (J.isElement(idOrObj)) { |
22 |
| - // el = idOrObj; |
23 |
| - // } |
24 |
| - // else { |
25 |
| - // throw new TypeError(prefix + ': idOrObj must be string ' + |
26 |
| - // ' or HTML Element.'); |
27 |
| - // } |
28 |
| - // return el; |
29 |
| - // } |
30 |
| - |
31 | 14 | var GameWindow = node.GameWindow;
|
32 | 15 |
|
33 | 16 | /**
|
|
52 | 35 | W.init(node.conf.window);
|
53 | 36 | });
|
54 | 37 |
|
55 |
| -// node.on('HIDE', function(idOrObj) { |
56 |
| -// var el; |
57 |
| -// console.log('***GameWindow.on.HIDE is deprecated. Use ' + |
58 |
| -// 'GameWindow.hide() instead.***'); |
59 |
| -// el = getElement(idOrObj, 'GameWindow.on.HIDE'); |
60 |
| -// if (el) el.style.display = 'none'; |
61 |
| -// }); |
62 |
| -// |
63 |
| -// node.on('SHOW', function(idOrObj) { |
64 |
| -// var el; |
65 |
| -// console.log('***GameWindow.on.SHOW is deprecated. Use ' + |
66 |
| -// 'GameWindow.show() instead.***'); |
67 |
| -// el = getElement(idOrObj, 'GameWindow.on.SHOW'); |
68 |
| -// if (el) el.style.display = ''; |
69 |
| -// }); |
70 |
| -// |
71 |
| -// node.on('TOGGLE', function(idOrObj) { |
72 |
| -// var el; |
73 |
| -// console.log('***GameWindow.on.TOGGLE is deprecated. Use ' + |
74 |
| -// 'GameWindow.toggle() instead.***'); |
75 |
| -// el = getElement(idOrObj, 'GameWindow.on.TOGGLE'); |
76 |
| -// if (el) { |
77 |
| -// if (el.style.display === 'none') { |
78 |
| -// el.style.display = ''; |
79 |
| -// } |
80 |
| -// else { |
81 |
| -// el.style.display = 'none'; |
82 |
| -// } |
83 |
| -// } |
84 |
| -// }); |
85 |
| - |
86 | 38 | // Disable all the input forms found within a given id element.
|
87 | 39 | node.on('INPUT_DISABLE', function(id) {
|
88 | 40 | W.toggleInputs(id, true);
|
|
0 commit comments