Skip to main content

Bug Tracker

Side navigation

#13448 closed bug (invalid)

Opened February 13, 2013 04:44PM UTC

Closed February 28, 2013 08:54AM UTC

arguments array of the $.ajax success callback contain only specified arguments

Reported by: robin@wenglewski.de Owned by: robin@wenglewski.de
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:
Description
$.ajax({
                        url: config.apiUrl("/external/xing/contacts"),
                        contentType: "application/json",
                        success: function () {
                            console.log(arguments);
                        },
                        dataType: 'json'
                    });

In Chrome and Chrome Canary this results in [].

In Firefox it results [Array[10], "success", Object].

$.ajax({
                        url: config.apiUrl("/external/xing/contacts"),
                        contentType: "application/json",
                        success: function (a,b,c) {
                            console.log(arguments);
                        },
                        dataType: 'json'
                    });

Results in FF & Chrome in [Array[10], "success", Object]

Now I tested it with jquery 1.9.1 and 1.8.2 and in Chrome, Chrome Canary and Firefox. I thought it might be a chrome Problem and independent of jQuery, but this works in the Chrome console:

(function(){console.log(arguments);})(1,2,3)

Results in [1, 2, 3]. It also works when using call or apply.

So it seems to be a problem specific to jQuery and chrome.

Attachments (0)
Change History (2)

Changed February 13, 2013 06:30PM UTC by dmethvin comment:1

owner: → robin@wenglewski.de
status: newpending

What does the returned content look like? Can you post a link to a test case?

Changed February 28, 2013 08:54AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!