#1 2018-05-12 14:23:34

jhineral
Member
Registered: 2018-05-12
Posts: 1

BUG: Misspelled variable name in alt1lib.js.

In https://runeapps.org/alt1lib.js there is a misspelled variable.

...
	if (!alt1.events.daemonun) { alt1.events.daemonrun = []; }
...

It appears a 'r' is missing when checking if the variable is set.  This always causes an empty array.  I have no idea what effect this would cause, but thought I would just put it there.

Last edited by jhineral (2018-05-12 14:24:00)

Offline

#2 2018-05-12 15:34:03

Skillbert
Administrator
Registered: 2014-12-30
Posts: 1,058

Re: BUG: Misspelled variable name in alt1lib.js.

Thanks, this will be fixed with the next upload. Seems like this would cause the event to reset all listeners for the daemonrun event if you ever load the script twice for some reason, or if i ever do this from the c# side i guess.

Offline

Board footer

Powered by FluxBB