Bug Tracker

Modify

Ticket #12077 (closed bug: invalid)

Opened 11 months ago

Last modified 11 months ago

THE jQuery.ready.promise DOES'T NEED PARAMETERS

Reported by: snandy Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8b2
Keywords: Cc:
Blocking: Blocked by:

Description

So in core.js (1.8b2) line 825 should Delete parameters "obj".JQuery.ready.promise is called only once line 229 without parameters.  https://github.com/jquery/jquery/blob/1.8b2/src/core.js#825

Change History

comment:1 Changed 11 months ago by jaubourg

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

This parameter is used:  https://github.com/jquery/jquery/blob/1.8b2/src/core.js#L879

You can do something like this in your code:

var myReadyPromise = jQuery.ready.promise({
        myField: "myValue"
    });

Just like you can with any promise:  http://api.jquery.com/deferred.promise/

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.