Skip to content

Commit

Permalink
IE8 support: reaplaced promise.catch with promise.then(null, function)
Browse files Browse the repository at this point in the history
  • Loading branch information
sahat committed Sep 25, 2014
1 parent efa9371 commit da7c9bc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions examples/client/vendor/satellizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
.then(function(response) {
shared.saveToken(response, deferred, isLinking);
})
.catch(function(response) {
.then(null, function(response) {
deferred.reject(response);
});

Expand Down Expand Up @@ -290,7 +290,7 @@
.then(function(response) {
shared.saveToken(response, deferred);
})
.catch(function(response) {
.then(null, function(response) {
deferred.reject(response);
});

Expand All @@ -309,7 +309,7 @@
deferred.resolve(response);
}
})
.catch(function(response) {
.then(null, function(response) {
deferred.reject(response);
});

Expand Down Expand Up @@ -354,11 +354,11 @@
.then(function(response) {
deferred.resolve(response);
})
.catch(function(response) {
.then(null, function(response) {
deferred.reject(response);
});
})
.catch(function(error) {
.then(null, function(error) {
deferred.reject(error);
});

Expand Down Expand Up @@ -432,11 +432,11 @@
.then(function(response) {
deferred.resolve(response);
})
.catch(function(response) {
.then(null, function(response) {
deferred.reject(response);
});
})
.catch(function(response) {
.then(null, function(response) {
deferred.reject(response);
});

Expand Down
14 changes: 7 additions & 7 deletions satellizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
.then(function(response) {
shared.saveToken(response, deferred, isLinking);
})
.catch(function(response) {
.then(null, function(response) {
deferred.reject(response);
});

Expand Down Expand Up @@ -290,7 +290,7 @@
.then(function(response) {
shared.saveToken(response, deferred);
})
.catch(function(response) {
.then(null, function(response) {
deferred.reject(response);
});

Expand All @@ -309,7 +309,7 @@
deferred.resolve(response);
}
})
.catch(function(response) {
.then(null, function(response) {
deferred.reject(response);
});

Expand Down Expand Up @@ -354,11 +354,11 @@
.then(function(response) {
deferred.resolve(response);
})
.catch(function(response) {
.then(null, function(response) {
deferred.reject(response);
});
})
.catch(function(error) {
.then(null, function(error) {
deferred.reject(error);
});

Expand Down Expand Up @@ -432,11 +432,11 @@
.then(function(response) {
deferred.resolve(response);
})
.catch(function(response) {
.then(null, function(response) {
deferred.reject(response);
});
})
.catch(function(response) {
.then(null, function(response) {
deferred.reject(response);
});

Expand Down
Loading

0 comments on commit da7c9bc

Please sign in to comment.