Skip to content

Commit

Permalink
Fixed bug when specifying a custom jQuery context
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Jul 19, 2011
1 parent 6014777 commit d7b912e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
@@ -1,3 +1,8 @@
### v0.3.5
* Further proxy fixes
* Fixed an bug when specifying a custom jQuery context
* Added JSDOM as a required package

### v0.3.3
* Fix when a 30x redirect is to another host
* Better HttpProxy support
Expand Down
2 changes: 1 addition & 1 deletion lib/node.io/dom.js
Expand Up @@ -54,7 +54,7 @@ Job.prototype.parseHtml = function (data, callback, response) {
jquery = require('jquery')
default_$ = jquery.create(window);
$ = function (selector, context) {
return context ? jquery.create(context) : default_$(selector);
return context ? jquery.create(context)(selector) : default_$(selector);
};
if (recurse === 1 || recurse === true || recurse instanceof Array) {
this.recurseUrls($);
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{ "name" : "node.io",
"description" : "A distributed data scraping and processing framework",
"version" : "0.3.4",
"version" : "0.3.5",
"homepage" : "http://github.com/chriso/node.io",
"keywords" : ["data","mapreduce","map","reduce","scraping","html","parsing","parse","scrape","process","processing","data"],
"author" : "Chris O'Hara <cohara87@gmail.com>",
Expand Down

0 comments on commit d7b912e

Please sign in to comment.