Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 50EDB9FA3 for ; Tue, 11 Sep 2012 21:05:59 +0000 (UTC) Received: (qmail 79718 invoked by uid 500); 11 Sep 2012 21:05:59 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 79699 invoked by uid 500); 11 Sep 2012 21:05:59 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 79686 invoked by uid 99); 11 Sep 2012 21:05:59 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2012 21:05:59 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id C8CC335879; Tue, 11 Sep 2012 21:05:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: purplecabbage@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer 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 Message-Id: <20120911210558.C8CC335879@tyr.zones.apache.org> Date: Tue, 11 Sep 2012 21:05:58 +0000 (UTC) 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 Authored: Tue Sep 11 14:04:37 2012 -0700 Committer: Jesse MacFadyen 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);