Skip to content

Commit

Permalink
[fix] Forgot to rename fn to callback in jsdom.jQueryify
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Aug 12, 2010
1 parent 6b4fa23 commit b4a90bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jsdom.js
Expand Up @@ -38,8 +38,8 @@ exports.jQueryify = function (window, /* path [optional], callback */) {

jQueryTag.onload = function() {
if (this.readyState === 'complete') {
if (typeof fn === "function") {
fn();
if (callback) {
callback();
}
}
};
Expand Down

0 comments on commit b4a90bd

Please sign in to comment.