cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject js commit: fixed issue CB-3385
Date Tue, 14 May 2013 18:46:34 GMT
Updated Branches:
  refs/heads/master 3218fc2d0 -> f0d783f44


fixed issue CB-3385


Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/f0d783f4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/f0d783f4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/f0d783f4

Branch: refs/heads/master
Commit: f0d783f4477ca1433bafddeb58b1034198d35e91
Parents: 3218fc2
Author: Steven Gill <stevengill97@gmail.com>
Authored: Tue May 14 11:46:29 2013 -0700
Committer: Steven Gill <stevengill97@gmail.com>
Committed: Tue May 14 11:46:29 2013 -0700

----------------------------------------------------------------------
 lib/scripts/plugin_loader.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/f0d783f4/lib/scripts/plugin_loader.js
----------------------------------------------------------------------
diff --git a/lib/scripts/plugin_loader.js b/lib/scripts/plugin_loader.js
index 1100245..053ebf1 100644
--- a/lib/scripts/plugin_loader.js
+++ b/lib/scripts/plugin_loader.js
@@ -100,7 +100,7 @@
         // If the request fails, or the response is not a JSON array, just call finishPluginLoading.
         var obj;
         try {
-            obj = this.status == 200 && this.responseText && JSON.parse(this.responseText);
+            obj = (this.status == 0 || this.status == 200) && this.responseText &&
JSON.parse(this.responseText);
         } catch (err) {
             // obj will be undefined.
         }


Mime
View raw message