runAfterButtons
This commit is contained in:
parent
dff965bb99
commit
190afe14e4
|
|
@ -2,8 +2,14 @@ function runAfterAutogen(func) {
|
||||||
runAfterAutogenList.push(func);
|
runAfterAutogenList.push(func);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function runAfterButtons(func) {
|
||||||
|
runAfterButtonsList.push(func);
|
||||||
|
};
|
||||||
|
|
||||||
runAfterAutogenList = [];
|
runAfterAutogenList = [];
|
||||||
|
|
||||||
|
runAfterButtonsList = [];
|
||||||
|
|
||||||
function behaviorStringsToArrays() {
|
function behaviorStringsToArrays() {
|
||||||
for (var behavior in behaviors) {
|
for (var behavior in behaviors) {
|
||||||
if (typeof behaviors[behavior][0] === "string") {
|
if (typeof behaviors[behavior][0] === "string") {
|
||||||
|
|
@ -821,6 +827,10 @@ window.onload = function() {
|
||||||
// Alphabetically sort and loop through dictionary named "elements"
|
// Alphabetically sort and loop through dictionary named "elements"
|
||||||
createButtonsAndCountElements();
|
createButtonsAndCountElements();
|
||||||
|
|
||||||
|
for (var i = 0; i < runAfterButtonsList.length; i++) {
|
||||||
|
runAfterButtonsList[i]();
|
||||||
|
};
|
||||||
|
|
||||||
selectElement(currentElement);
|
selectElement(currentElement);
|
||||||
focusGame();
|
focusGame();
|
||||||
// For every button element, onkeyup="event.preventDefault()"
|
// For every button element, onkeyup="event.preventDefault()"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue