You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mm...@apache.org on 2013/03/25 22:59:31 UTC

js commit: [CB-2806] ios fix for script_loader xhr response of 0.

Updated Branches:
  refs/heads/master 188648bfa -> 5f56a0d3f


[CB-2806] ios fix for script_loader xhr response of 0.


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

Branch: refs/heads/master
Commit: 5f56a0d3f1d38d82edb5817589d4f6a787651e05
Parents: 188648b
Author: Michal Mocny <mm...@gmail.com>
Authored: Mon Mar 25 17:59:25 2013 -0400
Committer: Michal Mocny <mm...@gmail.com>
Committed: Mon Mar 25 17:59:25 2013 -0400

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


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/5f56a0d3/lib/scripts/plugin_loader.js
----------------------------------------------------------------------
diff --git a/lib/scripts/plugin_loader.js b/lib/scripts/plugin_loader.js
index ef4f446..03a7381 100644
--- a/lib/scripts/plugin_loader.js
+++ b/lib/scripts/plugin_loader.js
@@ -101,7 +101,7 @@
 
         // If the response is a JSON string which composes an array, call handlePluginsObject.
         // If the request fails, or the response is not a JSON array, just call finishPluginLoading.
-        if (this.status == 200) {
+        if (this.status == 200 || this.status == 0) {
             var obj = JSON.parse(this.responseText);
             if (obj && obj instanceof Array && obj.length > 0) {
                 handlePluginsObject(obj);