9cd0cc95 by Gary Katsevman

make sure that options is an object

1 parent 34cde14a
......@@ -333,7 +333,7 @@ var
// use the URL specified in options if one was provided
if (typeof options === 'string') {
return options;
} else if (options.url) {
} else if (options && options.url) {
return options.url;
}
......