Quote:
Originally Posted by cbkbud
if ( func( "blah" ) )
vs.
this.funct = func();
if ( this.funct( "blah" ) )
Any other uses?
That doesn't make any sense to me.
|
>_>
PHP Code:
function onCreated()
{
if (func("blah")) {
stuff();
}
}
function func(foo) {
return true;
}
VS
PHP Code:
function onCreated()
{
this.funct = function() {
return true;
};
if (this.funct("blah")) {
stuff();
}
}
is more like it
