9cd0cc95 by Gary Katsevman

make sure that options is an object

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