make sure that options is an object
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment