* Attempts to convert string to boolean. * @param {String} value Input string. * @return {Boolean} Returns true if input was "true", false if input was "false" and value otherwise.
(value)
| 574 | * @return {Boolean} Returns true if input was "true", false if input was "false" and value otherwise. |
| 575 | */ |
| 576 | function toBoolean(value) |
| 577 | { |
| 578 | var result = { "true" : true, "false" : false }[value]; |
| 579 | return result == null ? value : result; |
| 580 | }; |
| 581 | |
| 582 | /** |
| 583 | * Opens up a centered popup window. |