Permalink
Browse files

Whitespace

  • Loading branch information...
1 parent da949d4 commit f90eeb75f589dda187d00f884045a8c5bac3d7aa @assaf assaf committed Nov 27, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/zombie/jsdom_patches.coffee
@@ -16,6 +16,7 @@ HTML.HTMLAnchorElement.prototype._eventDefaults =
anchor = event.target
anchor.ownerDocument.parentWindow.location = anchor.href if anchor.href
+
# Fix resource loading to keep track of in-progress requests. Need this to wait
# for all resources (mainly JavaScript) to complete loading before terminating
# browser.wait.
@@ -40,6 +41,7 @@ HTML.resourceLoader.load = (element, href, callback)->
@readFile file, @enqueue(element, loaded, file)
+# Support for iframes that load content when you set the src attribute.
HTML.Document.prototype._elementBuilders["iframe"] = (doc, s)->
parent = doc.parentWindow
@@ -54,7 +56,6 @@ HTML.Document.prototype._elementBuilders["iframe"] = (doc, s)->
return iframe
-
# If JSDOM encounters a JS error, it fires on the element. We expect it to be
# fires on the Window. We also want better stack traces.
HTML.languageProcessors.javascript = (element, code, filename)->

0 comments on commit f90eeb7

Please sign in to comment.