Bug Tracker

Modify

Ticket #3095 (closed bug: duplicate)

Opened 5 years ago

Last modified 3 years ago

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

Reported by: abo Owned by:
Priority: minor Milestone: 1.3
Component: ajax Version: 1.2.6
Keywords: post ajax extend refresh Cc:
Blocking: Blocked by:

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));
    ...
}

Change History

comment:1 Changed 5 years 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

comment:2 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to duplicate

Duplicate of #5439 (fixed).

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.