http://gwt-code-reviews.appspot.com/34801/diff/1/5 File user/src/com/google/gwt/dom/client/Node.java (right):
http://gwt-code-reviews.appspot.com/34801/diff/1/5#newcode58 Line 58: return (!!o) && (!!o.nodeType); On 2009/05/11 15:21:07, kellegous wrote: > I don't understand why you need !! on both expressions, && should already coerce > this to a boolean context. I tried that initially (return o && ...), but managed to get null returned. Turns out js (at least on WebKit) will coerce the (o) expression to a boolean context for the comparison, then proceed to return it uncoerced if it early-outs the boolean expression. Weird, eh? http://gwt-code-reviews.appspot.com/34801 --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
