Skip to content
Browse files

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

  • Loading branch information...
1 parent 6b4fa23 commit b4a90bd1fc61ca98f7ea3d3681c6d6e448831528 @indexzero indexzero committed Aug 12, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/jsdom.js
View
4 lib/jsdom.js
@@ -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.
Something went wrong with that request. Please try again.