Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #490 from jsoverson/phantomjs2-support
Browse files Browse the repository at this point in the history
Bypassing element wrapping for elements that do not exist
  • Loading branch information
arv committed Aug 13, 2014
2 parents 6386877 + 6dd2de7 commit 4702052
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wrappers/HTMLAudioElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

var OriginalHTMLAudioElement = window.HTMLAudioElement;

if (!OriginalHTMLAudioElement) return;

function HTMLAudioElement(node) {
HTMLMediaElement.call(this, node);
}
Expand Down
2 changes: 2 additions & 0 deletions src/wrappers/HTMLMediaElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

var OriginalHTMLMediaElement = window.HTMLMediaElement;

if (!OriginalHTMLMediaElement) return;

function HTMLMediaElement(node) {
HTMLElement.call(this, node);
}
Expand Down

0 comments on commit 4702052

Please sign in to comment.