You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2012/03/30 21:26:38 UTC

git commit: CB-321: Media API: 'mediaSuccess' callback param to new Media() is called soon after new obj created

Updated Branches:
  refs/heads/master c076f59d3 -> e49628efb


CB-321: Media API: 'mediaSuccess' callback param to new Media() is called soon after new obj created


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/e49628ef
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/e49628ef
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/e49628ef

Branch: refs/heads/master
Commit: e49628efb68becec2d693221676a024e0ba0d780
Parents: c076f59
Author: macdonst <si...@gmail.com>
Authored: Fri Mar 30 15:26:04 2012 -0400
Committer: macdonst <si...@gmail.com>
Committed: Fri Mar 30 15:26:04 2012 -0400

----------------------------------------------------------------------
 lib/common/plugin/Media.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/e49628ef/lib/common/plugin/Media.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/Media.js b/lib/common/plugin/Media.js
index 477ce06..d5f44fa 100644
--- a/lib/common/plugin/Media.js
+++ b/lib/common/plugin/Media.js
@@ -69,7 +69,7 @@ Media.get = function(id) {
  * Start or resume playing audio file.
  */
 Media.prototype.play = function(options) {
-    exec(this.successCallback, this.errorCallback, "Media", "startPlayingAudio", [this.id, this.src, options]);
+    exec(null, null, "Media", "startPlayingAudio", [this.id, this.src, options]);
 };
 
 /**