otnj2ee
10-03-2008, 11:39 PM
I often saw a variable assignment like this:
var onComplete = onComplete || false;
My understanding: if onComplete is valid, return the value of ocComplete; otherwise, return false.
--Is this correct understanding?
--If so, how to determine if the onComplete is valid or not? Use onComplete ==null or else?
Thanks
Scott
var onComplete = onComplete || false;
My understanding: if onComplete is valid, return the value of ocComplete; otherwise, return false.
--Is this correct understanding?
--If so, how to determine if the onComplete is valid or not? Use onComplete ==null or else?
Thanks
Scott