Skip to content

Commit

Permalink
Fix for allowing basic usage in NodeJS (using jsdom npm)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasononeil committed Oct 26, 2014
1 parent 84809db commit fe65c43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dtx/collection/Traversing.hx
Expand Up @@ -288,7 +288,7 @@ class Traversing
{
#if (js && !macro)
var element:DOMElement = cast node;
if (untyped __js__("document.querySelectorAll"))
if ( untyped element.querySelectorAll )
{
var results = element.querySelectorAll(selector);
newDOMCollection.addNodeList(results);
Expand Down
2 changes: 1 addition & 1 deletion src/dtx/single/Traversing.hx
Expand Up @@ -245,7 +245,7 @@ class Traversing
{
#if (js && !macro)
var element:DOMElement = cast node;
if (untyped __js__("document.querySelectorAll"))
if ( untyped element.querySelectorAll )
{
var results = element.querySelectorAll(selector);
newDOMCollection.addNodeList(results);
Expand Down

0 comments on commit fe65c43

Please sign in to comment.