Index: remoting/webapp/crd/js/xhr.js |
diff --git a/remoting/webapp/crd/js/xhr.js b/remoting/webapp/crd/js/xhr.js |
index 0551bdca3be439f0e620eddae9d9a05144d6f200..0529838ddfa88730b521a4e5d457d3546d98ca5c 100644 |
--- a/remoting/webapp/crd/js/xhr.js |
+++ b/remoting/webapp/crd/js/xhr.js |
@@ -208,12 +208,12 @@ remoting.xhr.defaultResponse = function(onDone, onError, opt_ignoreErrors) { |
var result = function(xhr) { |
var error = |
remoting.Error.fromHttpStatus(/** @type {number} */ (xhr.status)); |
- if (!error.isError()) { |
+ if (error.isNone()) { |
onDone(); |
return; |
} |
- if (opt_ignoreErrors && opt_ignoreErrors.indexOf(error.tag) !== -1) { |
+ if (opt_ignoreErrors && error.hasTag.apply(error, opt_ignoreErrors)) { |
onDone(); |
return; |
} |