Updated Branches: refs/heads/master bec1bb0cc -> 1acd9cb84
[CB-1402] Media API - wrong JavaScript callback is called for onStatus (typo) Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/1acd9cb8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/1acd9cb8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/1acd9cb8 Branch: refs/heads/master Commit: 1acd9cb84e38e13b0a5cfffc1e64242cda3c3099 Parents: bec1bb0 Author: Josh Soref <jso...@rim.com> Authored: Fri Sep 7 13:37:36 2012 -0400 Committer: Shazron Abdullah <shaz...@apache.org> Committed: Fri Sep 7 12:04:37 2012 -0700 ---------------------------------------------------------------------- CordovaLib/Classes/CDVSound.m | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/1acd9cb8/CordovaLib/Classes/CDVSound.m ---------------------------------------------------------------------- diff --git a/CordovaLib/Classes/CDVSound.m b/CordovaLib/Classes/CDVSound.m index 5c40724..c4a3319 100644 --- a/CordovaLib/Classes/CDVSound.m +++ b/CordovaLib/Classes/CDVSound.m @@ -590,7 +590,7 @@ jsString = [NSString stringWithFormat: @"%@(\"%@\",%d,%d);", @"cordova.require('cordova/plugin/Media').onStatus", mediaId, MEDIA_STATE, MEDIA_STOPPED]; } else { //jsString = [NSString stringWithFormat: @"%@(\"%@\",%d,%d);", @"cordova.require('cordova/plugin/Media').onStatus", mediaId, MEDIA_ERROR, MEDIA_ERR_DECODE]; - jsString = [NSString stringWithFormat: @"%@(\"%@\",%d,%@);", @"cordova.require('cordova/plugin/Media').onStatuss", mediaId, MEDIA_ERROR, [self createMediaErrorWithCode: MEDIA_ERR_DECODE message:nil]]; + jsString = [NSString stringWithFormat: @"%@(\"%@\",%d,%@);", @"cordova.require('cordova/plugin/Media').onStatus", mediaId, MEDIA_ERROR, [self createMediaErrorWithCode: MEDIA_ERR_DECODE message:nil]]; } if (self.avSession) { [self.avSession setActive:NO error:nil];