I have the following lines at the end of a javascript function. When I ran JSLint on it I get a 'weird ternary' warning on the last line.
return node === null
? {'node': this.storeContentsNode, 'placement': undefined}
: {'node': node.domNode, 'placement': 'after'};
If I'm doing something wrong I'd like to know but the warning message isn't particularly helpful.