Quote:
Originally Posted by Crow
I've done some research on this topic before, and I have another quirky example of code:
PHP Code:
new GuiControl("toastControl") { this.testFunc = public function() { echo("Hi there!"); }; }
toastControl.testFunc();
The code works perfectly fine, but it throws a syntax error.
|
That's just odd o.o
It works when using public function, but not without public..
PHP Code:
new GuiControl("toastControl") {
thiso.toast = this;
}
this.toast.testFunc = function() {
echo("Hi there!");
};
this.toast.testFunc();
The above works, but the other 'object functions' issues should be fixed
