mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:17:59 +01:00
Fix harmless error when document is unloaded immediately after exiting hint mode.
This commit is contained in:
@@ -490,6 +490,10 @@ var HintSession = Class("HintSession", CommandMode, {
|
|||||||
|
|
||||||
let n = 5;
|
let n = 5;
|
||||||
(function next() {
|
(function next() {
|
||||||
|
if (Cu.isDeadWrapper && Cu.isDeadWrapper(elem))
|
||||||
|
// Hint document has been unloaded.
|
||||||
|
return;
|
||||||
|
|
||||||
let hinted = n || this.validHints.some(function (h) h.elem === elem);
|
let hinted = n || this.validHints.some(function (h) h.elem === elem);
|
||||||
if (!hinted)
|
if (!hinted)
|
||||||
hints.setClass(elem, null);
|
hints.setClass(elem, null);
|
||||||
|
|||||||
Reference in New Issue
Block a user