Bug Tracker

Ticket #3095 (new bug)

Opened 2 months ago

Last modified 2 months ago

Ajax + FF3 conflict: Unwanted refresh due to re-extend 's'

Reported by: abo Assigned to: anonymous
Type: bug Priority: minor
Milestone: 1.3 Component: ajax
Version: 1.2.6 Keywords: post ajax extend refresh
Cc: Needs: Test Case

Description

ajax: function( s ) {
    // Extend the settings, but re-extend 's' so that it can be
    // checked again later (in the test suite, specifically)
    s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));
    ...
}

Re-extending 's' seems to conflict with Firefox 3 when doing an ajax post; An unnecessary refresh occurs.

Without the re-extend (like below) it works like a charm in all browsers.

ajax: function( s ) {
    s = jQuery.extend(true, {}, jQuery.ajaxSettings, s));
    ...
}

Attachments

Change History

Changed 2 months ago by flesler

  • need changed from Commit to Test Case

Can you please provide a test case ? that is, a small html file with the minimum html/css/js necessary to reproduce the problem. Thanks

Note: See TracTickets for help on using tickets.