You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/05/14 20:46:34 UTC
js commit: fixed issue CB-3385
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 <st...@gmail.com>
Authored: Tue May 14 11:46:29 2013 -0700
Committer: Steven Gill <st...@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.
}