You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/03/03 20:33:08 UTC

[8/10] git commit: little tweak in network

little tweak in network


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

Branch: refs/heads/master
Commit: 4c30a3aea5f1dae24dfa14f511e0129dde54ce49
Parents: 9bf873b
Author: Fil Maj <fi...@nitobi.com>
Authored: Thu Feb 23 11:50:26 2012 -0800
Committer: Fil Maj <ma...@gmail.com>
Committed: Fri Mar 2 16:03:21 2012 -0800

----------------------------------------------------------------------
 lib/plugin/network.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/4c30a3ae/lib/plugin/network.js
----------------------------------------------------------------------
diff --git a/lib/plugin/network.js b/lib/plugin/network.js
index d3e68a2..027aa55 100644
--- a/lib/plugin/network.js
+++ b/lib/plugin/network.js
@@ -1,5 +1,6 @@
 var exec = require('cordova/exec'),
-    cordova = require('cordova');
+    cordova = require('cordova'),
+    channel = require('cordova/channel');
 
 var NetworkConnection = function () {
         this.type = null;
@@ -7,8 +8,7 @@ var NetworkConnection = function () {
         this._timer = null;
         this.timeout = 500;
 
-        var me = this,
-            channel = require('cordova/channel');
+        var me = this;
 
         this.getInfo(
             function (info) {