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