From e61caf8f23a1cdce0fdb97496ac8f8ba43688e01 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 4 Oct 2010 15:16:33 -0400 Subject: [PATCH] Ensure that modes.stack[0].reset gets called on modes.reset() --- common/content/modes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/content/modes.js b/common/content/modes.js index 93324e89..b5876916 100644 --- a/common/content/modes.js +++ b/common/content/modes.js @@ -212,6 +212,8 @@ const Modes = Module("modes", { }, reset: function () { + if (this._modeStack.length == 1 && this.topOfStack.params.restore) + this.topOfStack.params.restore(this.topOfStack); while (this._modeStack.length > 1) this.pop(); },