Skip to content

Commit

Permalink
cleanup listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
shakty committed Jul 25, 2023
1 parent 4e419ce commit 920f759
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions listeners/listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,6 @@

"use strict";

// var J = node.JSUS;

// function getElement(idOrObj, prefix) {
// var el;
// if ('string' === typeof idOrObj) {
// el = W.getElementById(idOrObj);
// }
// else if (J.isElement(idOrObj)) {
// el = idOrObj;
// }
// else {
// throw new TypeError(prefix + ': idOrObj must be string ' +
// ' or HTML Element.');
// }
// return el;
// }

var GameWindow = node.GameWindow;

/**
Expand All @@ -52,37 +35,6 @@
W.init(node.conf.window);
});

// node.on('HIDE', function(idOrObj) {
// var el;
// console.log('***GameWindow.on.HIDE is deprecated. Use ' +
// 'GameWindow.hide() instead.***');
// el = getElement(idOrObj, 'GameWindow.on.HIDE');
// if (el) el.style.display = 'none';
// });
//
// node.on('SHOW', function(idOrObj) {
// var el;
// console.log('***GameWindow.on.SHOW is deprecated. Use ' +
// 'GameWindow.show() instead.***');
// el = getElement(idOrObj, 'GameWindow.on.SHOW');
// if (el) el.style.display = '';
// });
//
// node.on('TOGGLE', function(idOrObj) {
// var el;
// console.log('***GameWindow.on.TOGGLE is deprecated. Use ' +
// 'GameWindow.toggle() instead.***');
// el = getElement(idOrObj, 'GameWindow.on.TOGGLE');
// if (el) {
// if (el.style.display === 'none') {
// el.style.display = '';
// }
// else {
// el.style.display = 'none';
// }
// }
// });

// Disable all the input forms found within a given id element.
node.on('INPUT_DISABLE', function(id) {
W.toggleInputs(id, true);
Expand Down

0 comments on commit 920f759

Please sign in to comment.