Permalink
Browse files

[fix] Forgot to rename fn to callback in jsdom.jQueryify

  • Loading branch information...
indexzero committed Aug 12, 2010
1 parent 6b4fa23 commit b4a90bd1fc61ca98f7ea3d3681c6d6e448831528
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/jsdom.js
View
@@ -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();
}
}
};

0 comments on commit b4a90bd

Please sign in to comment.