FadiZahhar / jquery-twitter-api

Automatically exported from code.google.com/p/jquery-twitter-api
0 stars 0 forks source link

Calls $.each on line 138 without checking if options is null #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Call a method without an options object, e.g. 
$.twitter.search.hashtag("opendataTO",printSuccess);

What is the expected output? What do you see instead?
Expect no errors, but instead see jQuery object (or G) is null.

Easy fix, add && options to line 136 as in below:

function getAjaxParam(options, url, success){
...
...
...
    if (ajaxParams && options) {
        //Delete extra parameters
        $.each(options, function(key, value){
            if ($.inArray(key, ajaxParams) != -1) {
                output[key] = value;
            }
        });
    }
...

Original issue reported on code.google.com by LouisStA...@gmail.com on 3 Nov 2009 at 5:48

GoogleCodeExporter commented 8 years ago
Verified—works for me. Thanks.

Original comment by mgrin...@gmail.com on 28 Dec 2009 at 8:54