Bug Tracker


Ticket #7200 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:


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

comment:1 Changed 4 years ago by snover

  • Keywords docs added
  • Priority changed from undecided to low
  • Status changed from new to open
  • Component changed from unfiled to core

comment:2 Changed 4 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 follow-up: ↓ 4 Changed 4 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 4 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 4 years ago by snover

  • Milestone changed from 1.4.4 to 1.5

Retarget all enhancements/features to next major version.

comment:6 Changed 3 years ago by jitter

  • Keywords needsdocs added; docs removed
  • Milestone set to 1.next

comment:7 Changed 3 years ago by danheberden

  • Keywords needsdocs removed
  • Status changed from open to closed
  • Resolution set to fixed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


Add a comment

Modify Ticket

as closed

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.