Permalink
Browse files

Merge pull request #303 from malixsys/patch-1

corrects .toArray() blowing up on Windows in queryAll()
  • Loading branch information...
2 parents 12a1c71 + d012c30 commit 782672739c04028d03b99794c53a734b782c9357 @assaf assaf committed Mar 27, 2012
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]

0 comments on commit 7826727

Please sign in to comment.