1
0
Fork 0

Temporary implementation of props.getBoolValue() which correctly

interprets the string "false".  Eventually this needs to be an
extension function wrapping SGPropertyNode::getBoolValue().
This commit is contained in:
andy 2004-01-28 03:49:59 +00:00
parent f0eecbb59a
commit a67c4113e8

View file

@ -28,6 +28,11 @@ Node = {
removeChild : func { wrap(_removeChild(me._g, arg)) },
getNode : func { wrap(_getNode(me._g, arg)) },
getBoolValue : func {
val = getValue();
if(getType() == "STRING" and val == "false") { 0 }
else { val }
}
};
##