You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/03/15 20:36:25 UTC
[10/21] git commit: fix for MediaError code instantiation with 0 code
fix for MediaError code instantiation with 0 code
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/a3ef7635
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/a3ef7635
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/a3ef7635
Branch: refs/heads/master
Commit: a3ef7635ad620ca3f3c10c3f77f8451f5cd0b6e3
Parents: 6151d7d
Author: Fil Maj <ma...@gmail.com>
Authored: Mon Mar 12 17:48:50 2012 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Thu Mar 15 10:14:41 2012 -0700
----------------------------------------------------------------------
lib/plugin/MediaError.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/a3ef7635/lib/plugin/MediaError.js
----------------------------------------------------------------------
diff --git a/lib/plugin/MediaError.js b/lib/plugin/MediaError.js
index d0a8893..40ce8f1 100644
--- a/lib/plugin/MediaError.js
+++ b/lib/plugin/MediaError.js
@@ -3,7 +3,7 @@
* @constructor
*/
var MediaError = function(code, msg) {
- this.code = code || null;
+ this.code = (code !== undefined ? code : null);
this.message = msg || "";
};