incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject js commit: Fixed error with requiring window.Media aka cordova/plugins/Media
Date Tue, 22 May 2012 01:35:07 GMT
Updated Branches:
  refs/heads/master 019c7af39 -> 781562d1f


Fixed error with requiring window.Media aka cordova/plugins/Media


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

Branch: refs/heads/master
Commit: 781562d1fbd3e909dc454a536dcb0d76c6c2ac79
Parents: 019c7af
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Mon May 21 18:34:28 2012 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Mon May 21 18:34:28 2012 -0700

----------------------------------------------------------------------
 lib/wp7/plugin/wp7/CordovaMediaonStatus.js |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/781562d1/lib/wp7/plugin/wp7/CordovaMediaonStatus.js
----------------------------------------------------------------------
diff --git a/lib/wp7/plugin/wp7/CordovaMediaonStatus.js b/lib/wp7/plugin/wp7/CordovaMediaonStatus.js
index 6d27626..ac6388e 100644
--- a/lib/wp7/plugin/wp7/CordovaMediaonStatus.js
+++ b/lib/wp7/plugin/wp7/CordovaMediaonStatus.js
@@ -1,16 +1,13 @@
 
 var cordova = require('cordova');
-
+var Media = require('cordova/plugin/Media');
 
 module.exports = function(args) {
     try {
         var res = JSON.parse(args);
-        // NOTE: had issues with require here. -jm
-        // technically this should be var _media = require('Media'); /// me thinks
         Media.onStatus(res.id, res.msg, res.value);
     }
     catch(e) {
-        console.log("Error calling media.onStatus :: " + e);
+        console.log("Error calling Media.onStatus :: " + e);
     }
-
 };
\ No newline at end of file


Mime
View raw message