From e6a16b1a87027e9debc9787f784cd38f559a96d7 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Tue, 22 Aug 2017 09:29:50 -0700 Subject: [PATCH] fixes #19035, Add quotes to catch key to fix regression --- promise/Promise.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/promise/Promise.js b/promise/Promise.js index 4463db89ff..0959d2513a 100644 --- a/promise/Promise.js +++ b/promise/Promise.js @@ -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: