Skip to content

Commit

Permalink
fixes #19035, Add quotes to catch key to fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
pottedmeat authored and dylans committed Aug 22, 2017
1 parent b26cadf commit e6a16b1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions promise/Promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@ define([
return this.then(callbackOrErrback, callbackOrErrback);
},

catch: function(errback){
// summary:
// Add new errbacks to the promise. Follows ECMA specification naming.
// errback: Function?
// Callback to be invoked when the promise is rejected.
// returns: dojo/promise/Promise
// Returns a new promise for the result of the errback.

return this.then(null, errback);
},
"catch": function(errback){
// summary:
// Add new errbacks to the promise. Follows ECMA specification naming.
// errback: Function?
// Callback to be invoked when the promise is rejected.
// returns: dojo/promise/Promise
// Returns a new promise for the result of the errback.

return this.then(null, errback);
},

otherwise: function(errback){
// summary:
Expand Down

0 comments on commit e6a16b1

Please sign in to comment.