title: jQuery.ajax error function never called after net::ERR_NAME_NOT_RESOLVED on Cordova
body: <p>I have an app with Cordova 4.3 installed. When I try to access using <code>jQuery.ajax</code> a site that's not working at that moment (due to a failure, maintenance mode, whatever), the app throws an error I can't catch (because it's in an async task) and any further execution of JS stops working as it should. I noticed that this error was arised by calling a non existing subdomain, and it popped a <code>net::ERR_NAME_NOT_RESOLVED</code> error.</p>
  
  <p>The issue here is that the jQuery error method never gets called.</p>
  
  <p>The code is ridiculously standard:</p>
  
  <pre><code>$.ajax({
    url: dummy_path + script_name,
    dataType: "script",
    success: function(course) {
      // it works, when success
    },
    error: function() {
      // never called
    }
  });
  </code></pre>
  
  <p>I've already tried passing the <code>timeout</code> and <code>statusCode</code> parameters with proper values, calling <code>complete</code> and trying to <code>.abort()</code>. No luck!</p>