Skip to content

Commit

Permalink
Fixed callbackFromNative method
Browse files Browse the repository at this point in the history
NO_RESULT status was resolved as failure.
  • Loading branch information
mdudek committed Jan 8, 2015
1 parent 29aa7b2 commit 7b1e8e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cordova.js
Expand Up @@ -202,7 +202,7 @@ var cordova = {
if (callback) {
if (isSuccess && status == cordova.callbackStatus.OK) {
callback.success && callback.success.apply(null, args);
} else {
} else if (!isSuccess) {
callback.fail && callback.fail.apply(null, args);
}

Expand Down

0 comments on commit 7b1e8e1

Please sign in to comment.