Bug 1359967 - Fix broken oauthConnect method due to missing self reference. r/a=philipp
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Wed, 26 Apr 2017 22:33:12 +0300
changeset 27821 71dde03413c7e8d31bcbba342ab87f8251a73bbb
parent 27820 d74151d79d17ee03b9de44842866e3f929339f0c
child 27822 e046c1af98b5cf74df0eb9d3a86c16cf3d26fdab
push id1927
push usermozilla@kewis.ch
push dateThu, 27 Apr 2017 11:05:50 +0000
treeherdercomm-beta@71dde03413c7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1359967
Bug 1359967 - Fix broken oauthConnect method due to missing self reference. r/a=philipp MozReview-Commit-ID: FbHwMqxtw3t
calendar/providers/caldav/calDavCalendar.js
--- a/calendar/providers/caldav/calDavCalendar.js
+++ b/calendar/providers/caldav/calDavCalendar.js
@@ -1551,16 +1551,17 @@ calDavCalendar.prototype = {
      */
     getInterface: cal.InterfaceRequestor_getInterface,
 
     //
     // Helper functions
     //
 
     oauthConnect: function(authSuccessCb, authFailureCb, aRefresh=false) {
+        let self = this;
         // Use the async prompter to avoid multiple master password prompts
         let promptlistener = {
             onPromptStartAsync: function(callback) {
                 self.oauth.connect(() => {
                     authSuccessCb();
                     callback.onAuthResult(true);
                 }, () => {
                     authFailureCb();