enyojs/enyo — pull request #183 by pyromanfo (2012-11-27 23:08:38+00:00)
Title: Allow Checkboxes to accept string "true" or "false" values as well as boolean values

I made this patch to help when working with Backbone models pulled down over JSON, when the data is saved the attributes that are read from checkboxes come back from the server as string `"false"` instead of the actual boolean value `false`, for example.

The existing code was trying to deal with that by using "Boolean(inValue)" however this is problematic as it will take the string `"false"` and give you a `true` value back.

http://stackoverflow.com/questions/263965/how-can-i-convert-a-string-to-boolean-in-javascript

I added a function to lang called `enyo.isTrue` to handle this. Just a couple of lines.

Would you be interested in pulling this into master?