Closed GoogleCodeExporter closed 8 years ago
0 / 1 is the way to do a boolean test ;)
I'll add a note in the HOWTO - and true you'll have to case the primitive js
boolean to a Number, but that's pretty trivial. i.e. Number(false) === 0 and
Number(true) === 1 =)
Original comment by els...@gmail.com
on 8 Jun 2010 at 7:15
Original issue reported on code.google.com by
sergey.c...@gmail.com
on 8 Jun 2010 at 5:27