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-10557 Blackberry: Getters are not working #140

Merged
merged 2 commits into from Aug 28, 2012

Conversation

jpl-mac
Copy link

@jpl-mac jpl-mac commented Aug 28, 2012

Reviewer: David

This patch introduces cached getters. In other words, it allows for generic getters for JS properties without requiring to add more C++ code.

Changelog:

  • Updated the alertDialog yml doc
  • Removed c++ implemented getters that are not longer needed
  • Added NO_BRIDGE properties flags, (no bridge is the same as cached)
  • Modified onValueChange to no invoke the callback when it's null, but still forceset the value on the JS object
  • Set the READ_NO_BRIDGE flag on all readable properties
  • Modified setTiMappingProperties to not pass the callback when the NO_BRIDGE flag is set
  • removed warning

Tests:

  • Tested that the generic getters work and replace the c++ implementations appropriately
  • Tested the generic getters on the alertDialog, ensure that buttonNames returns an array

app.js file used for tests attached to JIRA ticket

Reviewer: David

This patch introduces cached getters.  In other words, it allows for generic getters for JS properties without requiring to add more C++ code.

Changelog:
- Updated the alertDialog yml doc
- Removed c++ implemented getters that are not longer needed
- Added NO_BRIDGE properties flags, (no bridge is the same as cached)
- Modified onValueChange to no invoke the callback when it's null, but still forceset the value on the JS object
- Set the READ_NO_BRIDGE flag on all readable properties
- Modified setTiMappingProperties to not pass the callback when the NO_BRIDGE flag is set
- removed warning

Tests:
- Tested that the generic getters work and replace the c++ implementations appropriately
- Tested the generic getters on the alertDialog, ensure that buttonNames returns an array

app.js file used for tests attached to JIRA ticket
@@ -99,11 +99,11 @@ properties:

A maximum of 3 buttons is supported on Android.

On BlackBerry, a confirm and cancel button automatically will be created if none are

Choose a reason for hiding this comment

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

How about:

On BlackBerry, 'Cancel' and 'OK' buttons will be automatically created if none are explicitly defined. Providing buttonNames will omit these buttons and use those provided instead.

Copy link
Author

Choose a reason for hiding this comment

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

done

@dlifshitz-maca
Copy link

Approved with comments. Please have QA verify the subtasks.

jpl-mac pushed a commit that referenced this pull request Aug 28, 2012
TIMOB-10557 Blackberry: Getters are not working
@jpl-mac jpl-mac merged commit fe2f730 into Macadamian:blackberry Aug 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants