Opened 10 years ago
Closed 10 years ago
#13448 closed bug (invalid)
arguments array of the $.ajax success callback contain only specified arguments
Reported by: | Owned by: | ||
---|---|---|---|
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 10 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
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!
What does the returned content look like? Can you post a link to a test case?