A short sidebar for those unfamiliar with this particular quirk of JS: On Sat, Nov 25, 2017 at 3:49 PM, David Mason <dma...@ryerson.ca> wrote:
> node.setAttribute('title','Click to '+(expand || 'expand')); > In JS the || operators evaluates to the first value of its left/right sides which itself evaluates to true in a "boolean context". i.e.: 2 || 3 in almost every other language that evaluates to true, whereas in JS it evaluates to 2. Likewise (0 || 7) evaluates to 7. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users