incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [4/11] js commit: renamed NativeProxy to CommandProxy
Date Fri, 20 Jul 2012 22:56:18 GMT
renamed NativeProxy to CommandProxy


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

Branch: refs/heads/master
Commit: 174aff157bb19871c215a13e22c377ae27c45b67
Parents: 9ec2de6
Author: Jesse <purplecabbage@gmail.com>
Authored: Fri Jul 20 11:50:12 2012 -0700
Committer: Jesse <purplecabbage@gmail.com>
Committed: Fri Jul 20 11:50:12 2012 -0700

----------------------------------------------------------------------
 lib/win8metro/exec.js |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/174aff15/lib/win8metro/exec.js
----------------------------------------------------------------------
diff --git a/lib/win8metro/exec.js b/lib/win8metro/exec.js
index 2c82a45..d0faee1 100644
--- a/lib/win8metro/exec.js
+++ b/lib/win8metro/exec.js
@@ -26,7 +26,7 @@ var cordova = require('cordova');
 
 
 var CommandProxy  = {
-    
+
     "Accelerometer": require('cordova/plugin/win8metro/AccelerometerProxy'),
     "Camera":{
         // args will contain ...  it is an array, so be careful
@@ -271,7 +271,7 @@ var CommandProxy  = {
 
 module.exports = function(success, fail, service, action, args) {
 
-    if(NativeProxy[service] && NativeProxy[service][action]) {
+    if(CommandProxy [service] && CommandProxy [service][action]) {
 
         var callbackId = service + cordova.callbackId++;
         console.log("EXEC:" + service + " : " + action);
@@ -281,7 +281,7 @@ module.exports = function(success, fail, service, action, args) {
         }
         // pass it on to Notify
         try {
-            NativeProxy[service][action](success, fail, args);
+            CommandProxy [service][action](success, fail, args);
         }
         catch(e) {
             console.log("Exception calling native with command :: " + service + " :: " +
action  + " ::exception=" + e);
@@ -294,3 +294,5 @@ module.exports = function(success, fail, service, action, args) {
 
 };
 
+
+


Mime
View raw message