Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] Another tiny syntax fix for the arguments magic

  • Loading branch information...
commit e212c18b90e4fe83e224351b31a61c1a0481d44c 1 parent b4a90bd
@indexzero indexzero authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/jsdom.js
View
4 lib/jsdom.js
@@ -21,7 +21,7 @@ exports.createWindow = function (html, level) {
return window;
};
-exports.jQueryify = function (window, /* path [optional], callback */) {
+exports.jQueryify = function (window /* path [optional], callback */) {
var args = Array.prototype.slice.call(arguments),
callback = (typeof(args[args.length - 1]) === 'function') && args.pop(),
path = undefined,
@@ -43,4 +43,6 @@ exports.jQueryify = function (window, /* path [optional], callback */) {
}
}
};
+
+ return window;
};
Please sign in to comment.
Something went wrong with that request. Please try again.