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/04/20 02:08:14 UTC

[7/7] jshint all of the code and fixed up the hint + whitespace tasks in the jakefile

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/ios/platform.js
----------------------------------------------------------------------
diff --git a/lib/ios/platform.js b/lib/ios/platform.js
index 6e6b151..8333ffd 100644
--- a/lib/ios/platform.js
+++ b/lib/ios/platform.js
@@ -4,7 +4,7 @@ module.exports = {
         // iOS doesn't allow reassigning / overriding navigator.geolocation object.
         // So clobber its methods here instead :)
         var geo = require('cordova/plugin/geolocation');
-        
+
         navigator.geolocation.getCurrentPosition = geo.getCurrentPosition;
         navigator.geolocation.watchPosition = geo.watchPosition;
         navigator.geolocation.clearWatch = geo.clearWatch;
@@ -44,4 +44,4 @@ module.exports = {
             }
         }
     }
-};
+};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/ios/plugin/ios/Contact.js
----------------------------------------------------------------------
diff --git a/lib/ios/plugin/ios/Contact.js b/lib/ios/plugin/ios/Contact.js
index dcf97cd..f176e64 100644
--- a/lib/ios/plugin/ios/Contact.js
+++ b/lib/ios/plugin/ios/Contact.js
@@ -5,8 +5,8 @@ var exec = require('cordova/exec'),
  * Provides iOS Contact.display API.
  */
 module.exports = {
-    display : function(errorCB, options) { 
-        /* 
+    display : function(errorCB, options) {
+        /*
          *    Display a contact using the iOS Contact Picker UI
          *    NOT part of W3C spec so no official documentation
          *
@@ -27,4 +27,4 @@ module.exports = {
             exec(null, errorCB, "Contacts","displayContact", [this.id, options]);
         }
     }
-};
+};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/ios/plugin/ios/Entry.js
----------------------------------------------------------------------
diff --git a/lib/ios/plugin/ios/Entry.js b/lib/ios/plugin/ios/Entry.js
index e56bf19..15b43ad 100644
--- a/lib/ios/plugin/ios/Entry.js
+++ b/lib/ios/plugin/ios/Entry.js
@@ -1,6 +1,6 @@
 module.exports = {
     toURL:function() {
-        // TODO: refactor path in a cross-platform way so we can eliminate 
+        // TODO: refactor path in a cross-platform way so we can eliminate
         // these kinds of platform-specific hacks.
         return "file://localhost" + this.fullPath;
     },
@@ -8,4 +8,4 @@ module.exports = {
         console.log("DEPRECATED: Update your code to use 'toURL'");
         return "file://localhost" + this.fullPath;
     }
-};
+};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/ios/plugin/ios/FileReader.js
----------------------------------------------------------------------
diff --git a/lib/ios/plugin/ios/FileReader.js b/lib/ios/plugin/ios/FileReader.js
index 87b5501..0a97d7a 100644
--- a/lib/ios/plugin/ios/FileReader.js
+++ b/lib/ios/plugin/ios/FileReader.js
@@ -81,7 +81,7 @@ module.exports = {
                 if (typeof me.onloadend === "function") {
                     me.onloadend(new ProgressEvent("loadend", {target:me}));
                 }
-            }, 
+            },
         "File", "readAsText", [this.fileName, enc]);
     }
-};
+};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/ios/plugin/ios/console.js
----------------------------------------------------------------------
diff --git a/lib/ios/plugin/ios/console.js b/lib/ios/plugin/ios/console.js
index 2545c56..4732ad1 100644
--- a/lib/ios/plugin/ios/console.js
+++ b/lib/ios/plugin/ios/console.js
@@ -15,7 +15,7 @@ DebugConsole.INFO_LEVEL   = 1;
 DebugConsole.WARN_LEVEL   = 2;
 DebugConsole.ERROR_LEVEL  = 4;
 DebugConsole.NONE_LEVEL   = 8;
-                                                    
+
 DebugConsole.prototype.setLevel = function(level) {
     this.logLevel = level;
 };
@@ -26,7 +26,7 @@ var stringify = function(message) {
             return JSON.stringify(message);
         } else {
             return message.toString();
-        } 
+        }
     } catch (e) {
         return e.toString();
     }
@@ -71,4 +71,4 @@ DebugConsole.prototype.error = function(message) {
     }
 };
 
-module.exports = new DebugConsole();
+module.exports = new DebugConsole();
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/ios/plugin/ios/contacts.js
----------------------------------------------------------------------
diff --git a/lib/ios/plugin/ios/contacts.js b/lib/ios/plugin/ios/contacts.js
index d04887b..824418d 100644
--- a/lib/ios/plugin/ios/contacts.js
+++ b/lib/ios/plugin/ios/contacts.js
@@ -4,8 +4,8 @@ var exec = require('cordova/exec');
  * Provides iOS enhanced contacts API.
  */
 module.exports = {
-    newContactUI : function(successCallback) { 
-        /* 
+    newContactUI : function(successCallback) {
+        /*
          *    Create a contact using the iOS Contact Picker UI
          *    NOT part of W3C spec so no official documentation
          *
@@ -14,7 +14,7 @@ module.exports = {
         exec(successCallback, null, "Contacts","newContact", []);
     },
     chooseContact : function(successCallback, options) {
-        /* 
+        /*
          *    Select a contact using the iOS Contact Picker UI
          *    NOT part of W3C spec so no official documentation
          *

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/ios/plugin/ios/device.js
----------------------------------------------------------------------
diff --git a/lib/ios/plugin/ios/device.js b/lib/ios/plugin/ios/device.js
index 4ab6382..44e42e2 100644
--- a/lib/ios/plugin/ios/device.js
+++ b/lib/ios/plugin/ios/device.js
@@ -28,4 +28,4 @@ Device.prototype.setInfo = function(info) {
     }
 };
 
-module.exports = new Device();
+module.exports = new Device();
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/ios/plugin/ios/nativecomm.js
----------------------------------------------------------------------
diff --git a/lib/ios/plugin/ios/nativecomm.js b/lib/ios/plugin/ios/nativecomm.js
index 938a68c..a584c2b 100644
--- a/lib/ios/plugin/ios/nativecomm.js
+++ b/lib/ios/plugin/ios/nativecomm.js
@@ -7,4 +7,4 @@ module.exports = function() {
   var json = JSON.stringify(cordova.commandQueue);
   cordova.commandQueue = [];
   return json;
-};
+};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/ios/plugin/ios/notification.js
----------------------------------------------------------------------
diff --git a/lib/ios/plugin/ios/notification.js b/lib/ios/plugin/ios/notification.js
index b8f222a..cbc2da6 100644
--- a/lib/ios/plugin/ios/notification.js
+++ b/lib/ios/plugin/ios/notification.js
@@ -4,4 +4,4 @@ module.exports = {
     beep:function(count) {
         (new Media('beep.wav')).play();
     }
-};
+};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/playbook/exec.js
----------------------------------------------------------------------
diff --git a/lib/playbook/exec.js b/lib/playbook/exec.js
index 756d305..bd221ea 100644
--- a/lib/playbook/exec.js
+++ b/lib/playbook/exec.js
@@ -55,4 +55,4 @@ module.exports = function(success, fail, service, action, args) {
     } catch (e) {
         utils.alert("Error: "+e);
     }
-};
+};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/playbook/platform.js
----------------------------------------------------------------------
diff --git a/lib/playbook/platform.js b/lib/playbook/platform.js
index 3ea062b..c837f93 100644
--- a/lib/playbook/platform.js
+++ b/lib/playbook/platform.js
@@ -15,4 +15,4 @@ module.exports = {
             }
         }
     }
-};
+};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/playbook/plugin/playbook/device.js
----------------------------------------------------------------------
diff --git a/lib/playbook/plugin/playbook/device.js b/lib/playbook/plugin/playbook/device.js
index f3d86ec..f0e0027 100644
--- a/lib/playbook/plugin/playbook/device.js
+++ b/lib/playbook/plugin/playbook/device.js
@@ -21,4 +21,4 @@ channel.onCordovaReady.subscribeOnce(function() {
     );
 });
 
-module.exports = me;
+module.exports = me;
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/playbook/plugin/playbook/manager.js
----------------------------------------------------------------------
diff --git a/lib/playbook/plugin/playbook/manager.js b/lib/playbook/plugin/playbook/manager.js
index 295f86c..54be8d6 100644
--- a/lib/playbook/plugin/playbook/manager.js
+++ b/lib/playbook/plugin/playbook/manager.js
@@ -1,5 +1,6 @@
 var webworks = require('cordova/plugin/webworks/manager'),
     cordova = require('cordova'),
+    MediaFile = require('cordova/plugin/MediaFile'),
     /**
      * Private list of HTML 5 audio objects, indexed by the Cordova media object ids
      */

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/scripts/bootstrap-errgen.js
----------------------------------------------------------------------
diff --git a/lib/scripts/bootstrap-errgen.js b/lib/scripts/bootstrap-errgen.js
index d238a5f..cdfe9fc 100644
--- a/lib/scripts/bootstrap-errgen.js
+++ b/lib/scripts/bootstrap-errgen.js
@@ -17,4 +17,4 @@
  * under the License.
  */
 
-require('cordova/channel').onNativeReady.fire();
+require('cordova/channel').onNativeReady.fire();
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/scripts/bootstrap-playbook.js
----------------------------------------------------------------------
diff --git a/lib/scripts/bootstrap-playbook.js b/lib/scripts/bootstrap-playbook.js
index 19cf867..a994abf 100644
--- a/lib/scripts/bootstrap-playbook.js
+++ b/lib/scripts/bootstrap-playbook.js
@@ -1 +1 @@
-require('cordova/channel').onNativeReady.fire();
+require('cordova/channel').onNativeReady.fire();
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/scripts/bootstrap.js
----------------------------------------------------------------------
diff --git a/lib/scripts/bootstrap.js b/lib/scripts/bootstrap.js
index 9c3252f..06e7419 100755
--- a/lib/scripts/bootstrap.js
+++ b/lib/scripts/bootstrap.js
@@ -34,11 +34,11 @@
                     channel.join(function() {
                         channel.onDeviceReady.fire();
                     }, channel.deviceReadyChannelsArray);
-                    
+
                 }, [ channel.onDOMContentLoaded, channel.onNativeReady ]);
             }
         };
-        
+
     // boot up once native side is ready
     channel.onNativeReady.subscribeOnce(_self.boot);
 
@@ -49,4 +49,4 @@
         channel.onNativeReady.fire();
     }
 
-}(window));
+}(window));
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/scripts/require.js
----------------------------------------------------------------------
diff --git a/lib/scripts/require.js b/lib/scripts/require.js
index a92249d..5ae09e2 100644
--- a/lib/scripts/require.js
+++ b/lib/scripts/require.js
@@ -40,4 +40,4 @@ var require,
 if (typeof module === "object" && typeof require === "function") {
     module.exports.require = require;
     module.exports.define = define;
-}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/test/exec.js
----------------------------------------------------------------------
diff --git a/lib/test/exec.js b/lib/test/exec.js
index a5d1a69..1e9164d 100644
--- a/lib/test/exec.js
+++ b/lib/test/exec.js
@@ -1 +1 @@
-module.exports = jasmine.createSpy();
+module.exports = jasmine.createSpy();
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/webworks/plugin/webworks/manager.js
----------------------------------------------------------------------
diff --git a/lib/webworks/plugin/webworks/manager.js b/lib/webworks/plugin/webworks/manager.js
index 7ea6592..9c0a454 100644
--- a/lib/webworks/plugin/webworks/manager.js
+++ b/lib/webworks/plugin/webworks/manager.js
@@ -11,4 +11,4 @@ module.exports = {
 
         return {"status" : cordova.callbackStatus.CLASS_NOT_FOUND_EXCEPTION, "message" : "Class " + clazz + " cannot be found"};
     }
-};
+};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/wp7/exec.js
----------------------------------------------------------------------
diff --git a/lib/wp7/exec.js b/lib/wp7/exec.js
index 3be3c99..ed52ecb 100644
--- a/lib/wp7/exec.js
+++ b/lib/wp7/exec.js
@@ -15,9 +15,9 @@ var cordova = require('cordova');
  * @param {String[]} [args]     Zero or more arguments to pass to the method
 
  */
- 
+
  /* this will become a programmatic way to gen the named args ... TODO: -jm
-var NamedArgs = 
+var NamedArgs =
 {
     File:{
         getFileMetadata:["fullPath"],
@@ -32,8 +32,8 @@ var NamedArgs =
     }
 }
 */
- 
-var MonkeyPatch = 
+
+var MonkeyPatch =
 {
     File:
     {
@@ -54,7 +54,7 @@ var MonkeyPatch =
             return {fullPath:arg[0],path:arg[1],options:arg[2]};
         },
         "removeRecursively":function(arg)
-        { 
+        {
             return {fullPath:arg[0]};
         },
         "getFile":function(arg)
@@ -75,7 +75,7 @@ var MonkeyPatch =
         }
 
     },
-    FileTransfer: 
+    FileTransfer:
     {
         // [filePath, server, fileKey, fileName, mimeType, params, debug, chunkedMode]
         "upload":function(arg)
@@ -103,15 +103,15 @@ var MonkeyPatch =
     {
         captureAudio:function(arg)// actually caught by our other case inside exec
         {
-            return arg[0];    
+            return arg[0];
         },
         captureVideo:function(arg)// actually caught by our other case inside exec
         {
-            return arg[0];    
+            return arg[0];
         },
         captureImage:function(arg)// actually caught by our other case inside exec
         {
-            return arg[0];    
+            return arg[0];
         }
     },
     Media:
@@ -176,19 +176,19 @@ var MonkeyPatch =
             return {quality:arg[0],destinationType:arg[1],sourceType:arg[2],targetWidth:arg[3],targetHeight:arg[4],encodingType:arg[5]};
         }
     }
-    
+
 };
 
-module.exports = function(success, fail, service, action, args) 
+module.exports = function(success, fail, service, action, args)
 {
 
     var callbackId = service + cordova.callbackId++;
-    if (typeof success == "function" || typeof fail == "function") 
+    if (typeof success == "function" || typeof fail == "function")
     {
         cordova.callbacks[callbackId] = {success:success, fail:fail};
     }
     // generate a new command string, ex. DebugConsole/log/DebugConsole23/{"message":"wtf dude?"}
-    
+
      if(MonkeyPatch[service] && MonkeyPatch[service][action])
      {
         //console.log("MonkeyPatching " + service + "." + action);
@@ -196,9 +196,9 @@ module.exports = function(success, fail, service, action, args)
      }
      else if(args && args.length && args.length == 1)
      {
-         args = args[0]; 
+         args = args[0];
      }
-    
+
      var command = service + "/" + action + "/" + callbackId + "/" + JSON.stringify(args);
      // pass it on to Notify
      try
@@ -209,13 +209,11 @@ module.exports = function(success, fail, service, action, args)
          }
          else
          {
-            console.log("window.external not available :: command=" + command);  
+            console.log("window.external not available :: command=" + command);
          }
      }
      catch(e)
      {
-         console.log("Exception calling native with command :: " + command + " :: exception=" + e); 
+         console.log("Exception calling native with command :: " + command + " :: exception=" + e);
      }
-};
-
-
+};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/wp7/platform.js
----------------------------------------------------------------------
diff --git a/lib/wp7/platform.js b/lib/wp7/platform.js
index 233db13..e44eb22 100644
--- a/lib/wp7/platform.js
+++ b/lib/wp7/platform.js
@@ -43,14 +43,14 @@ module.exports = {
         },
         resolveLocalFileSystemURI: {
             path:"cordova/plugin/wp7/resolveLocalFileSystemURI"
-        },        
-        File: { 
+        },
+        File: {
             path: "cordova/plugin/File"
         },
-        FileReader: { 
+        FileReader: {
             path: "cordova/plugin/FileReader"
         },
-        FileError: { 
+        FileError: {
             path: "cordova/plugin/FileError"
         },
         MediaError: {
@@ -62,13 +62,13 @@ module.exports = {
                     path: "cordova/plugin/wp7/device",
                     children:{
                         capture:{
-                            path:"cordova/plugin/capture"    
+                            path:"cordova/plugin/capture"
                         }
                     }
                 },
                 console: {
                     path: "cordova/plugin/wp7/console"
-                    
+
                 }
             }
         },
@@ -79,6 +79,4 @@ module.exports = {
           path: "cordova/plugin/wp7/console"
         }
     }
-};
-
-
+};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/wp7/plugin/wp7/CordovaCommandResult.js
----------------------------------------------------------------------
diff --git a/lib/wp7/plugin/wp7/CordovaCommandResult.js b/lib/wp7/plugin/wp7/CordovaCommandResult.js
index 737d715..7a236d6 100644
--- a/lib/wp7/plugin/wp7/CordovaCommandResult.js
+++ b/lib/wp7/plugin/wp7/CordovaCommandResult.js
@@ -8,32 +8,32 @@ module.exports = function(status,callbackId,args,cast) {
     if(status === "backbutton") {
         cordova.fireDocumentEvent("backbutton");
         return "true";
-    } 
+    }
     else if(status === "resume") {
         channel.onResume.fire();
         return "true";
-    } 
+    }
     else if(status === "pause") {
         channel.onPause.fire();
-        return "true";  
+        return "true";
     }
-    
+
     var parsedArgs;
     try
     {
         parsedArgs = JSON.parse(args);
-        
+
     }
     catch(ex)
     {
         console.log("Parse error in CordovaCommandResult :: " + ex);
         return;
     }
-    
+
     try
     {
         // For some commands, the message is a JSON encoded string
-        // and other times, it is just a string, the try/catch handles the 
+        // and other times, it is just a string, the try/catch handles the
         // case where message was indeed, just a string.
         parsedArgs.message = JSON.parse(parsedArgs.message);
     }
@@ -49,6 +49,4 @@ module.exports = function(status,callbackId,args,cast) {
     else {
         cordova.callbackError(callbackId,parsedArgs,cast);
     }
-};
-
-
+};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/wp7/plugin/wp7/CordovaMediaonStatus.js
----------------------------------------------------------------------
diff --git a/lib/wp7/plugin/wp7/CordovaMediaonStatus.js b/lib/wp7/plugin/wp7/CordovaMediaonStatus.js
index 6fc0550..6302b2c 100644
--- a/lib/wp7/plugin/wp7/CordovaMediaonStatus.js
+++ b/lib/wp7/plugin/wp7/CordovaMediaonStatus.js
@@ -2,8 +2,8 @@
 var cordova = require('cordova');
 
 module.exports = function(args) {
-    
+
     console.log("media on status :: " + args);
     //var res = JSON.parse(args);
     //require("cordova/media").onStatus(res.id, res.msg, res.value);
-};
+};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/wp7/plugin/wp7/DOMStorage.js
----------------------------------------------------------------------
diff --git a/lib/wp7/plugin/wp7/DOMStorage.js b/lib/wp7/plugin/wp7/DOMStorage.js
index 4620e80..842902a 100644
--- a/lib/wp7/plugin/wp7/DOMStorage.js
+++ b/lib/wp7/plugin/wp7/DOMStorage.js
@@ -15,7 +15,7 @@
         _type:"localStorage",
         _result:null,
         keys:null,
-    
+
         onResult:function(key,valueStr) {
             if(!this.keys) {
                 this.keys = [];
@@ -55,10 +55,10 @@
         },
 
     /*
-        The key(n) method must return the name of the nth key in the list. 
-        The order of keys is user-agent defined, but must be consistent within an object so long as the number of keys doesn't change. 
-        (Thus, adding or removing a key may change the order of the keys, but merely changing the value of an existing key must not.) 
-        If n is greater than or equal to the number of key/value pairs in the object, then this method must return null. 
+        The key(n) method must return the name of the nth key in the list.
+        The order of keys is user-agent defined, but must be consistent within an object so long as the number of keys doesn't change.
+        (Thus, adding or removing a key may change the order of the keys, but merely changing the value of an existing key must not.)
+        If n is greater than or equal to the number of key/value pairs in the object, then this method must return null.
     */
         key:function(n) {
             if(!this.keys) {
@@ -73,7 +73,7 @@
         },
 
     /*
-        The getItem(key) method must return the current value associated with the given key. 
+        The getItem(key) method must return the current value associated with the given key.
         If the given key does not exist in the list associated with the object then this method must return null.
     */
         getItem:function(key) {
@@ -90,11 +90,11 @@
             return retVal;
         },
     /*
-        The setItem(key, value) method must first check if a key/value pair with the given key already exists 
+        The setItem(key, value) method must first check if a key/value pair with the given key already exists
         in the list associated with the object.
         If it does not, then a new key/value pair must be added to the list, with the given key and with its value set to value.
         If the given key does exist in the list, then it must have its value updated to value.
-        If it couldn't set the new value, the method must raise an QUOTA_EXCEEDED_ERR exception. 
+        If it couldn't set the new value, the method must raise an QUOTA_EXCEEDED_ERR exception.
         (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)
     */
         setItem:function(key,value) {
@@ -105,8 +105,8 @@
         },
 
     /*
-        The removeItem(key) method must cause the key/value pair with the given key to be removed from the list 
-        associated with the object, if it exists. 
+        The removeItem(key) method must cause the key/value pair with the given key to be removed from the list
+        associated with the object, if it exists.
         If no item with that key exists, the method must do nothing.
     */
         removeItem:function(key) {
@@ -123,8 +123,8 @@
         },
 
     /*
-        The clear() method must atomically cause the list associated with the object to be emptied of all 
-        key/value pairs, if there are any. 
+        The clear() method must atomically cause the list associated with the object to be emptied of all
+        key/value pairs, if there are any.
         If there are none, then the method must do nothing.
     */
         clear:function() {
@@ -142,7 +142,7 @@
     };
 
     // initialize DOMStorage
-    
+
     Object.defineProperty( window, "localStorage", {
         writable: false,
         configurable: false,
@@ -160,4 +160,4 @@
 
 })();
 
-module.exports = null;
+module.exports = null;
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/wp7/plugin/wp7/XHRPatch.js
----------------------------------------------------------------------
diff --git a/lib/wp7/plugin/wp7/XHRPatch.js b/lib/wp7/plugin/wp7/XHRPatch.js
index 2b7d535..14a8575 100644
--- a/lib/wp7/plugin/wp7/XHRPatch.js
+++ b/lib/wp7/plugin/wp7/XHRPatch.js
@@ -1,3 +1,8 @@
+// TODO: the build process implicitly will wrap this in a define() call
+// with a closure of its own; do you need this extra closure?
+
+var LocalFileSystem = require('cordova/plugin/LocalFileSystem');
+
 (function (win, doc) {
 
 var docDomain = null;
@@ -165,8 +170,7 @@ if (!docDomain || docDomain.length === 0) {
 
                 var gotFile = function gotFile(file) {
                     var reader = new FileReader();
-                    reader.onloadend = function (evt) 
-                    {
+                    reader.onloadend = function (evt) {
                         alias.onResult.apply(alias,[evt.target.result]);
                     };
                     reader.readAsText(file);
@@ -186,9 +190,9 @@ if (!docDomain || docDomain.length === 0) {
         },
         status: 404
     };
-} // if doc domain 
+} // if doc domain
 
 // end closure wrap
 })(window, document);
 
-module.exports = null;
+module.exports = null;
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/wp7/plugin/wp7/console.js
----------------------------------------------------------------------
diff --git a/lib/wp7/plugin/wp7/console.js b/lib/wp7/plugin/wp7/console.js
index 3758c7d..dd2d9be 100644
--- a/lib/wp7/plugin/wp7/console.js
+++ b/lib/wp7/plugin/wp7/console.js
@@ -12,8 +12,7 @@ var debugConsole = {
     },
     error:function(msg){
         exec(null,null,"DebugConsole","error",msg);
-    }    
+    }
 };
 
-module.exports = debugConsole;
-
+module.exports = debugConsole;
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/wp7/plugin/wp7/device.js
----------------------------------------------------------------------
diff --git a/lib/wp7/plugin/wp7/device.js b/lib/wp7/plugin/wp7/device.js
index 8940115..ebb85ee 100644
--- a/lib/wp7/plugin/wp7/device.js
+++ b/lib/wp7/plugin/wp7/device.js
@@ -57,4 +57,4 @@ Device.prototype.getInfo = function(successCallback, errorCallback) {
     exec(successCallback, errorCallback, "Device", "getDeviceInfo", []);
 };
 
-module.exports = new Device();
+module.exports = new Device();
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/lib/wp7/plugin/wp7/resolveLocalFileSystemURI.js
----------------------------------------------------------------------
diff --git a/lib/wp7/plugin/wp7/resolveLocalFileSystemURI.js b/lib/wp7/plugin/wp7/resolveLocalFileSystemURI.js
index 717f490..32d591d 100644
--- a/lib/wp7/plugin/wp7/resolveLocalFileSystemURI.js
+++ b/lib/wp7/plugin/wp7/resolveLocalFileSystemURI.js
@@ -2,8 +2,9 @@
 
 var DirectoryEntry = require('cordova/plugin/DirectoryEntry'),
     FileEntry = require('cordova/plugin/FileEntry'),
+    FileError = require('cordova/plugin/FileError'),
     exec = require('cordova/exec');
-    
+
 module.exports = function(uri, successCallback, errorCallback) {
     // error callback
     var fail = function(error) {
@@ -34,4 +35,4 @@ module.exports = function(uri, successCallback, errorCallback) {
     };
 
     exec(success, fail, "File", "resolveLocalFileSystemURI", {uri:uri});
-};
\ No newline at end of file
+};

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b8d02d50/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 2d66d93..86a4f6f 100644
--- a/package.json
+++ b/package.json
@@ -43,8 +43,7 @@
   ],
   "dependencies": {
     "jsdom":"0.2.10",
-    "connect":"1.8.5",
-    "jshint":"0.6.1"
+    "connect":"1.8.5"
   },
   "devDependencies": {}
 }