From fc088f19e3dac4bfed894d0b5214ebce22ad8927 Mon Sep 17 00:00:00 2001
From: Shane Tomlinson <stomlinson@mozilla.com>
Date: Wed, 10 Aug 2011 16:29:45 -0700
Subject: [PATCH] Fixing the doCancel to pass back null for the success

---
 browserid/static/dialog/controllers/dialog_controller.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/browserid/static/dialog/controllers/dialog_controller.js b/browserid/static/dialog/controllers/dialog_controller.js
index f2336fde3..6fdb1477a 100644
--- a/browserid/static/dialog/controllers/dialog_controller.js
+++ b/browserid/static/dialog/controllers/dialog_controller.js
@@ -108,10 +108,7 @@ PageController.extend("Dialog", {}, {
       
     doCancel: function() {
       var self=this;
-      // cancel
-      if(self.onerror) {
-        self.onerror("cancelled");
-      }
+      self.onsuccess && self.onsuccess(null);
     },
 
     doSignIn: function() {
-- 
GitLab