View Single Post
  #3  
Old 05-10-2009, 12:44 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Crow View Post
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
__________________

Last edited by Chompy; 05-10-2009 at 01:00 PM..
Reply With Quote