incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject js commit: MyBad, media.errorCallback is called with whatever is passed to Media.onStatus() : it should be an error object, with a code property
Date Tue, 11 Sep 2012 21:05:58 GMT
Updated Branches:
  refs/heads/master 650e5414e -> 145c3816e


MyBad, media.errorCallback is called with whatever is passed to Media.onStatus() : it should
be an error object, with a code property


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/145c3816
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/145c3816
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/145c3816

Branch: refs/heads/master
Commit: 145c3816e0a834d104b94f8a807dcaa4e5afa1fa
Parents: 650e541
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Tue Sep 11 14:04:37 2012 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Tue Sep 11 14:04:37 2012 -0700

----------------------------------------------------------------------
 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/145c3816/lib/common/plugin/Media.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/Media.js b/lib/common/plugin/Media.js
index cbbe70b..f83ab09 100644
--- a/lib/common/plugin/Media.js
+++ b/lib/common/plugin/Media.js
@@ -172,7 +172,7 @@ Media.onStatus = function(id, msgType, value) {
                 media._duration = value;
                 break;
             case Media.MEDIA_ERROR :
-                media.errorCallback && media.errorCallback({'code':value}); 
+                media.errorCallback && media.errorCallback(value); 
                 break;
             case Media.MEDIA_POSITION :
                 media._position = Number(value);


Mime
View raw message