Skip to content

Commit

Permalink
override: add override to getRootNode() to return proxy object, fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Feb 11, 2025
1 parent a18328f commit 06b290b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/wombat.js
Original file line number Diff line number Diff line change
Expand Up @@ -5027,6 +5027,14 @@ Wombat.prototype.initDomOverride = function() {
'parentNode'
);
this.overridePropToProxy(this.$wbwindow.Event.prototype, 'target');

// getRootNode() override
var orig_getRootNode = Node.prototype.getRootNode;
var wombat = this;

Node.prototype.getRootNode = function() {
return wombat.objToProxy(orig_getRootNode.call(this));
}

Check failure on line 5037 in src/wombat.js

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon

Check failure on line 5037 in src/wombat.js

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon
}

if (this.$wbwindow.Element && this.$wbwindow.Element.prototype) {
Expand Down

0 comments on commit 06b290b

Please sign in to comment.