04-23-2009, 01:27 AM
|
#14 (permalink)
|
|
The Frequenter
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
|
You can return nothing like there, but! That means the render function will generate an error unless modified, but in that condition it would be wrong to change, as no inputs were found. Only the "if-browser-does-not-support-getElementsByTagName" you should return void and then check for void return in the Render function.
As for the "object literal" or closure object, its one of the things I would really like with real closures now in PHP 5.3, but lets hope they can be in 6.0 if someone makes a patch for it :)
__________________
|
|
|