Skip to content
Browse files

Added changelog entry.

  • Loading branch information...
1 parent 0456893 commit 031ad81b36fb98181b150ddb2d17e01d5041a25e @assaf assaf committed
Showing with 12 additions and 4 deletions.
  1. +10 −2 CHANGELOG.md
  2. +2 −2 src/zombie/jsdom_patches.coffee
View
12 CHANGELOG.md
@@ -12,8 +12,16 @@ Fix firing the `change` event on `SELECT` elements when using jQuery
Fix for `jQuery.ajax` receiving a non-string `data` option (Damian
Janowski).
- 284 Tests
- 4.9 sec to complete
+Fix to allow `script` elements that are not JavaScript (Sean Coates).
+
+NOTE: In this release I started running the test suite using `cake test`
+and recording the time reported by Vows. This doesn't count the
+time it takes to fire up Node, Cake, etc, so the reported time is
+approximately a second smaller than the previously reported time for
+0.8.11. All other things being equal.
+
+ 285 Tests
+ 3.4 sec to complete
### Version 0.8.11 2011-01-25
View
4 src/zombie/jsdom_patches.coffee
@@ -78,8 +78,8 @@ core.Document.prototype._elementBuilders["script"] = (doc, s)->
filename = @ownerDocument.URL
@ownerDocument.parentWindow.perform (done)=>
loaded = (code, filename)=>
- if core.languageProcessors[@language]?
- core.languageProcessors[@language](this, code, filename) if code == @text
+ if core.languageProcessors[@language] && code == @text
+ core.languageProcessors[@language](this, code, filename)
done()
core.resourceLoader.enqueue(this, loaded, filename)(null, code)
return script

0 comments on commit 031ad81

Please sign in to comment.
Something went wrong with that request. Please try again.