Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Check that a callback object has been provided or else cb ends up u…

…ndefined.
  • Loading branch information...
commit 7e12760d86d7009559f30a7c4450b88da36da1f9 1 parent 4ca97e5
Bart Teeuwisse authored davglass committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/node-yui3.js
View
2  lib/node-yui3.js
@@ -226,7 +226,7 @@ YUI.prototype.fetch = function(url, o) {
var cb = {};
if (typeof o === 'function') {
cb.success = o;
- } else {
+ } else if (typeof o === 'object') {
cb = o;
}
Please sign in to comment.
Something went wrong with that request. Please try again.