diff --git a/browserid/static/dialog/controllers/dialog_controller.js b/browserid/static/dialog/controllers/dialog_controller.js index f2336fde3ac88a962077ec90a261dba2b4628226..6fdb1477aa9bb6a8aaae06a01aae1145f7411458 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() {