forked from blackberry/WebWorks-API-Docs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modifications in response to code review
- Loading branch information
Mike Waugh
committed
Dec 1, 2011
1 parent
0c66dbb
commit dfa3dcc
Showing
1 changed file
with
15 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If I got it right invocation of callbackOnSuccess only occurs in the positive result (when user has right for this digital good SKU), but if he doesn't have right would callbackOnFailure be invoked or neither of them? In that case user can't be sure that the response is negative.
Similar comment is apply also for isAppWorldInstalledAndAtCorrectVersion method below.
More appropriate approach here in our opinion is to have callbackOnSuccess to be invoked all time when there is no error with a Boolean parameter that represents the result of the call.