Skip to content

Commit

Permalink
Merge pull request #187 from aisty/master
Browse files Browse the repository at this point in the history
IE compatibility - catch is a reserved word
  • Loading branch information
spoike committed Jan 25, 2015
2 parents 98e6b7c + 48cd4f2 commit abadf1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PublisherMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ module.exports = {

promise.then(function(response) {
return me.completed(response);
}).catch(function(error) {
});
// IE compatibility - catch is a reserved word - without bracket notation source compilation will fail under IE
promise["catch"](function(error) {
return me.failed(error);
});
},
Expand Down

0 comments on commit abadf1f

Please sign in to comment.