cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject [2/2] git commit: Update JS snapshot to version 3.6.0 (via coho)
Date Fri, 29 Aug 2014 17:16:33 GMT
Update JS snapshot to version 3.6.0 (via coho)


Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/6849b994
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/6849b994
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/6849b994

Branch: refs/heads/3.6.x
Commit: 6849b9942f25b6152dd9e84275f5b050075c3c24
Parents: b07daec
Author: Archana Naik <naika@lab126.com>
Authored: Fri Aug 29 10:11:17 2014 -0700
Committer: Archana Naik <naika@lab126.com>
Committed: Fri Aug 29 10:11:17 2014 -0700

----------------------------------------------------------------------
 framework/assets/www/cordova.js | 27 ---------------------------
 1 file changed, 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/6849b994/framework/assets/www/cordova.js
----------------------------------------------------------------------
diff --git a/framework/assets/www/cordova.js b/framework/assets/www/cordova.js
index b8627c9..6e70791 100644
--- a/framework/assets/www/cordova.js
+++ b/framework/assets/www/cordova.js
@@ -1,4 +1,3 @@
-
 // Platform: amazon-fireos
 // 3.6.3
 /*
@@ -1498,17 +1497,6 @@ module.exports = {
         cordova.addDocumentEventHandler('menubutton');
         cordova.addDocumentEventHandler('searchbutton');
 
-        function bindButtonChannel(buttonName) {
-            // generic button bind used for volumeup/volumedown buttons
-            var volumeButtonChannel = cordova.addDocumentEventHandler(buttonName + 'button');
-            volumeButtonChannel.onHasSubscribersChange = function() {
-                exec(null, null, "App", "overrideButton", [buttonName, this.numHandlers ==
1]);
-            };
-        }
-        // Inject a listener for the volume buttons on the document.
-        bindButtonChannel('volumeup');
-        bindButtonChannel('volumedown');
-
         // Let native code know we are all done on the JS side.
         // Native code will then un-hide the WebView.
         channel.onCordovaReady.subscribe(function() {
@@ -1587,21 +1575,6 @@ module.exports = {
     },
 
     /**
-    * Override the default behavior of the Android volume button.
-    * If overridden, when the volume button is pressed, the "volume[up|down]button"
-    * JavaScript event will be fired.
-    *
-    * Note: The user should not have to call this method.  Instead, when the user
-    *       registers for the "volume[up|down]button" event, this is automatically done.
-    *
-    * @param button          volumeup, volumedown
-    * @param override        T=override, F=cancel override
-    */
-    overrideButton:function(button, override) {
-        exec(null, null, "App", "overrideButton", [button, override]);
-    },
-
-    /**
     * Exit and terminate the application.
     */
     exitApp:function() {


Mime
View raw message