fixed #2: toString representation of WebPage instance should be checked, not the…
… object instance itself
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -631,7 +631,7 @@ | ... | @@ -631,7 +631,7 @@ |
631 | if (phantom.version.major <= 1 && phantom.version.minor < 3) { | 631 | if (phantom.version.major <= 1 && phantom.version.minor < 3) { |
632 | return what instanceof WebPage; | 632 | return what instanceof WebPage; |
633 | } else { | 633 | } else { |
634 | return what.indexOf('WebPage(') === 0; | 634 | return what.toString().indexOf('WebPage(') === 0; |
635 | } | 635 | } |
636 | } | 636 | } |
637 | })(phantom); | 637 | })(phantom); | ... | ... |
-
Please register or sign in to post a comment