Bug 301837 followup, fix strict warning, patch by Aaron Keier <tonglebeak@gmail.com>, r+a=mconnor

This commit is contained in:
gavin%gavinsharp.com 2005-07-26 00:11:45 +00:00
parent d2efd89ced
commit 432e1ede45

View File

@ -367,7 +367,7 @@
switch (this.type) {
case "int":
intValue = parseInt(value, 10) + '';
var intValue = parseInt(value, 10) + '';
return intValue != "NaN" ? intValue : 0;
case "bool":
return typeof(value) == "boolean" ? value : value == "true";