Skip to main content

Bug Tracker

Side navigation

#12077 closed bug (invalid)

Opened July 13, 2012 07:11AM UTC

Closed July 13, 2012 07:22AM UTC

THE jQuery.ready.promise DOES'T NEED PARAMETERS

Reported by: snandy Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8b2
Keywords: Cc:
Blocked by: Blocking:
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

Attachments (0)
Change History (1)

Changed July 13, 2012 07:22AM UTC by jaubourg comment:1

resolution: → invalid
status: newclosed

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/