cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hermw...@apache.org
Subject [1/5] git commit: there was an error in the object definition
Date Fri, 25 Apr 2014 20:23:58 GMT
Repository: cordova-plugin-network-information
Updated Branches:
  refs/heads/master e0d3ae00b -> 7b4c96ec7


there was an error in the object definition


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/commit/37047348
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/tree/37047348
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/diff/37047348

Branch: refs/heads/master
Commit: 37047348db396c3f1176d860436a03e400b7a659
Parents: cd67d7a
Author: Piotr Zalewa <zalun@ubuntu.(none)>
Authored: Sat Mar 15 18:44:57 2014 -0700
Committer: Piotr Zalewa <zalun@ubuntu.(none)>
Committed: Sat Mar 15 18:44:57 2014 -0700

----------------------------------------------------------------------
 src/firefoxos/NetworkProxy.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/37047348/src/firefoxos/NetworkProxy.js
----------------------------------------------------------------------
diff --git a/src/firefoxos/NetworkProxy.js b/src/firefoxos/NetworkProxy.js
index 831706b..ec315d2 100644
--- a/src/firefoxos/NetworkProxy.js
+++ b/src/firefoxos/NetworkProxy.js
@@ -26,10 +26,10 @@
 
 
 var cordova = require('cordova');
+var connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection;

 
 module.exports = {                                    
     
-    var connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection;

     
     getConnectionInfo: function (win, fail, args) {      
         /*
@@ -57,4 +57,4 @@ module.exports = {
     }
 };
 
-require("cordova/firefoxos/commandProxy").add("Network", module.exports);
\ No newline at end of file
+require("cordova/firefoxos/commandProxy").add("Network", module.exports);


Mime
View raw message