Bug Tracker

Opened 7 years ago

Closed 6 years ago

#7200 closed enhancement (fixed)

Add .jquery to the official API

Reported by: Nick_Craver Owned by:
Priority: low Milestone: 1.next
Component: core Version: 1.4.3
Keywords: Cc:
Blocked by: Blocking:

Description

The $.fn.jquery version property (http://github.com/jquery/jquery/blob/1.4.2/src/core.js#L170) isn't in the official API (http://api.jquery.com/) currently.

I don't think it's going anywhere given it's in core and been there since 1.0, but can we add it to the official API documentation to ensure it can be used without any (or less at least) fear of future breaking changes?

Change History (7)

comment:1 Changed 7 years ago by snover

Component: unfiledcore
Keywords: docs added
Priority: undecidedlow
Status: newopen

comment:2 Changed 7 years ago by T.J. Crowder

See also ticket #7224, a ticket for solving the same problem via the jQuery.type function. Either way, really. Advantage to the property is that it's not a function call. Advantage to jQuery.type is that it will work when handed something that isn't an object.

comment:3 Changed 7 years ago by ajpiano

The solution in #7224 does not, in fact, solve the same problem. jQuery.fn.jquery returns the actual version string, e.g., "1.4.3".

comment:4 in reply to:  3 Changed 7 years ago by T.J. Crowder

Replying to ajpiano:

The solution in #7224 does not, in fact, solve the same problem.

It solves the problem both Nick and I were addressing: http://stackoverflow.com/questions/3941621

comment:5 Changed 7 years ago by snover

Milestone: 1.4.41.5

Retarget all enhancements/features to next major version.

comment:6 Changed 6 years ago by jitter

Keywords: needsdocs added; docs removed
Milestone: 1.next

comment:7 Changed 6 years ago by danheberden

Keywords: needsdocs removed
Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.