View Single Post
  #2  
Old 06-04-2007, 01:54 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
PHP Code:
this.on core.setValue(this.on, (this.on = !this.on)); 
Firstly, I am not sure that (this.on = !this.on) will work there; it is probably doing comparison instead of assignation.

Secondly, this is what your function is probably actually doing in this context:
PHP Code:
(@ true) = (@ false); 
Finally, you haven't returned anything from setValue() to set this.on to, so it is probably overwriting it with NULL.
__________________
Skyld
Reply With Quote