Bug Tracker

Opened 7 years ago

Closed 7 years ago

#13448 closed bug (invalid)

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

Reported by: robin@… Owned by: robin@…
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.

Change History (2)

comment:1 Changed 7 years ago by dmethvin

Owner: set to robin@…
Status: newpending

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

comment:2 Changed 7 years ago by trac-o-bot

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!

Note: See TracTickets for help on using tickets.