code: function handlePluginsObject (path, moduleList, finishPluginLoading) {
      // Now inject the scripts.
      var scriptCounter = moduleList.length;
  
      if (!scriptCounter) {
          finishPluginLoading();
          return;
      }
      function scriptLoadedCallback () {
          if (!--scriptCounter) {
              onScriptLoadingComplete(moduleList, finishPluginLoading);
          }
      }
  
      for (var i = 0; i < moduleList.length; i++) {
          injectIfNecessary(moduleList[i].id, path + moduleList[i].file, scriptLoadedCallback);
      }
  }
docs: Handler for the cordova_plugins.js content. See plugman's plugin_loader.js for the details of this object. This function is only called if the really is a plugins array that isn't empty. Otherwise the onerror response handler will just call finishPluginLoading().