Skip to content

Commit

Permalink
remove legacy code paths from isElementInstance()
Browse files Browse the repository at this point in the history
- nsIDOMElement was removed in mozilla61 in Bug 1455674
- call to importGlobalProperties was made unnecessary in mozilla65 in
  Bug 1489301 part 4 (see also: Bug 1501127)
  • Loading branch information
girst committed May 2, 2022
1 parent 632e125 commit db9a2c0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions extension/lib/markable-elements.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
utils = require('./utils')
viewportUtils = require('./viewport')

_Element = Ci.nsIDOMElement
if _Element
isElementInstance = (el) -> el instanceof _Element
else
Cu.importGlobalProperties(['Element'])
isElementInstance = (el) -> Element.isInstance(el)
isElementInstance = (el) -> Element.isInstance(el)

MIN_TEXTNODE_SIZE = 4

Expand Down

0 comments on commit db9a2c0

Please sign in to comment.