You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2013/03/14 23:43:36 UTC
[1/3] js commit: [WindowsPhone][CB-2592]Remove global callbacks for
media
[WindowsPhone][CB-2592]Remove global callbacks for media
Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/2066ee8d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/2066ee8d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/2066ee8d
Branch: refs/heads/master
Commit: 2066ee8de48089d0a687c30e7c91dcca1a879b50
Parents: 0b88895
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Thu Mar 14 00:10:50 2013 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Thu Mar 14 00:10:50 2013 -0700
----------------------------------------------------------------------
lib/windowsphone/plugin/media/symbols.js | 1 -
.../plugin/windowsphone/CordovaMediaonStatus.js | 38 ---------------
2 files changed, 0 insertions(+), 39 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-js/blob/2066ee8d/lib/windowsphone/plugin/media/symbols.js
----------------------------------------------------------------------
diff --git a/lib/windowsphone/plugin/media/symbols.js b/lib/windowsphone/plugin/media/symbols.js
index 1b11941..d97c647 100644
--- a/lib/windowsphone/plugin/media/symbols.js
+++ b/lib/windowsphone/plugin/media/symbols.js
@@ -23,4 +23,3 @@ var modulemapper = require('cordova/modulemapper');
modulemapper.defaults('cordova/plugin/Media', 'Media');
modulemapper.defaults('cordova/plugin/MediaError', 'MediaError');
-modulemapper.clobbers('cordova/plugin/windowsphone/CordovaMediaonStatus', 'CordovaMediaonStatus');
http://git-wip-us.apache.org/repos/asf/cordova-js/blob/2066ee8d/lib/windowsphone/plugin/windowsphone/CordovaMediaonStatus.js
----------------------------------------------------------------------
diff --git a/lib/windowsphone/plugin/windowsphone/CordovaMediaonStatus.js b/lib/windowsphone/plugin/windowsphone/CordovaMediaonStatus.js
deleted file mode 100644
index 8cd0879..0000000
--- a/lib/windowsphone/plugin/windowsphone/CordovaMediaonStatus.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-
-var cordova = require('cordova');
-var Media = require('cordova/plugin/Media');
-
-module.exports = function(args) {
- try {
-
- var res = JSON.parse(args);
- if(res.msg == Media.MEDIA_ERROR) {
- res.value = {'code':res.value};
- }
- Media.onStatus(res.id, res.msg, res.value);
- }
- catch(e) {
- console.log("Error calling Media.onStatus :: " + e);
- }
-};