Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #303 from malixsys/patch-1

corrects .toArray() blowing up on Windows in queryAll()
  • Loading branch information...
commit 782672739c04028d03b99794c53a734b782c9357 2 parents 12a1c71 + d012c30
@assaf assaf authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/zombie/browser.coffee
View
3  lib/zombie/browser.coffee
@@ -257,7 +257,8 @@ class Browser extends EventEmitter
queryAll: (selector, context)->
context ||= @document
if selector
- return context.querySelectorAll(selector).toArray()
+ ret = context.querySelectorAll(selector)
+ return Array.prototype.slice.call(ret, 0)
else
return [context]
Please sign in to comment.
Something went wrong with that request. Please try again.