Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timob 12026: add default behaviors for views properties #3892

Merged
merged 7 commits into from Feb 23, 2013

Conversation

hieupham007
Copy link
Contributor

@ghost ghost assigned pingwang2011 Feb 20, 2013
*/
public static boolean toBoolean(Object value, boolean def)
{
if (value instanceof Boolean) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need to copy this code. Use
try {return toBoolean(Object)} catch (IllegalArgumentException e) {return def}
See https://github.com/appcelerator/titanium_mobile/blob/master/android/titanium/src/java/org/appcelerator/titanium/util/TiConvert.java#L387 for reference.

@pingwang2011
Copy link
Contributor

Code reviewed and functionally tested. Accepted

pingwang2011 added a commit that referenced this pull request Feb 23, 2013
Timob 12026: add default behaviors for views properties
@pingwang2011 pingwang2011 merged commit ce8d224 into tidev:master Feb 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants