Skip to content
Browse files

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

…ndefined.
  • Loading branch information...
1 parent 4ca97e5 commit 7e12760d86d7009559f30a7c4450b88da36da1f9 Bart Teeuwisse committed with davglass
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;
}

0 comments on commit 7e12760

Please sign in to comment.
Something went wrong with that request. Please try again.