[jQuery] default value of an object's property
hi there,
a quick question: i'm using an object to pass a series of variables.
Sometimes, i test for a specific property, which might not exist.
I can't seem to find the right way, i tried
Obj.sortby = (typeof Obj.sortby == 'undefined' || Obj.sortby==''
||Obj.sortby == null) ? 'time' : Obj.sortby;
but everytime that property "sortby" hasn't been set, firebug returns
it as "null"
can you clear that up for me?
Thanks a lot!
Alexandre