Bug Tracker

Modify

Ticket #2819 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

$.fn.load is being overwritten

Reported by: flesler Owned by: flesler
Priority: minor Milestone: 1.2.4
Component: event Version: 1.2.3
Keywords: load event ajax Cc:
Blocking: Blocked by:

Description

Scott and I realized, that the $.fn.load created on the event module, is simply overwritten later in the ajax module.

$().load( fn ); is supported, as the functionality is specified on the ajax module, but $().load() doesn't work.

I checked the docs, and actually, $().load() is not a documented option, but it is an expected behavior in my opinion.

Even if it's not, then the load created on the event module is useless and should be removed.

Attachments

fixed-load.diff Download (1.5 KB) - added by flesler 5 years ago.
Changes on ajax.js and the test that would fail w/o this change.

Change History

Changed 5 years ago by flesler

Changes on ajax.js and the test that would fail w/o this change.

comment:1 Changed 5 years ago by joern

Patch looks good, should be applied.

comment:2 Changed 5 years ago by flesler

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

Applied at [5501] and extra test case at [5502].

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.