Closed epicdave closed 11 years ago
I'll get this rolled out to NPM very shortly.
0.7.6 pushed to NPM - this bug was really simple, and I'm pretty embarassed about it. The QueryRunner was actually passing around your values just fine, but when we went to convert them from the internal representation (an array of primitive objects) to the public return type (a SpahQL object wrapping an array of primitive objects) the SpahQL constructor method was duck-typing the arguments by checking for a truthy value on a property, rather than checking for hasOwnProperty
.
So yeah, sorry about that. I've added regression tests to make sure this one doesn't resurface.
no worries - and thanks for the quick turn around!!
pretty much what the title says. this bit of JSON:
is read by this SpahQL command:
var buttonX_offset = itemObj.item(i).select("/position_offsets/buttonX").value();
as "undefined". If I change the value of 'buttonX' to 1, everything works fine. In this case the change from 0 to 1 doesn't much matter, but there will be cases where I (and probably others) really do need the number 0 to be read as the number 0.