Bug Tracker

Modify

Ticket #11733 (closed enhancement: fixed)

Opened 13 months ago

Last modified 12 months ago

Deprecate .load(), .unload(), and .error() methods

Reported by: dmethvin Owned by:
Priority: low Milestone: 1.8
Component: event Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:

Description

These are shortcut names for $().bind("load", fn) etc.

  • The .load() method is an ambiguous signature, it can either be an ajax load or attach/fire a "load" event. CCAO cannot tell them apart since it's a dynamic decision based on arguments.
  • If .load() is being deprecated, .unload() should be as well.
  • The .error() method has never worked to attach a window.onerror event since the function signature is not the same as a standard event handler. It may also be confused with jQuery.error() which is not related.

Change History

comment:1 Changed 13 months ago by dmethvin

  • Priority changed from undecided to low
  • Status changed from new to open
  • Component changed from unfiled to event
  • Milestone changed from None to 1.8

comment:2 Changed 12 months ago by dmethvin

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

Docs updated.

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.