Opened 16 years ago
Closed 15 years ago
#1310 closed enhancement (worksforme)
Add easily accessible version info to jQuery core
Reported by: | joern | Owned by: | joern |
---|---|---|---|
Priority: | minor | Milestone: | 1.2.4 |
Component: | core | Version: | 1.1.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Currently jQuery's version can be accessed via jQuery.fn.jquery. I propose this patch:
Index: D:/dev/workspace/jquery/src/jquery/jquery.js =================================================================== --- D:/dev/workspace/jquery/src/jquery/jquery.js (revision 2128) +++ D:/dev/workspace/jquery/src/jquery/jquery.js (working copy) @@ -37,6 +37,9 @@ // Map the jQuery namespace to the '$' one var $ = jQuery; +// create static version reference +jQuery.version = "@VERSION"; + /** * This function accepts a string containing a CSS or * basic XPath selector which is then used to match a set of elements.
Change History (2)
comment:1 Changed 15 years ago by
Milestone: | 1.1.3 → 1.2.4 |
---|---|
Owner: | set to joern |
comment:2 Changed 15 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
The difference between jQuery.version and jQuery.fn.version is really not worth the trouble.
Note: See
TracTickets for help on using
tickets.
Is this really needed ? uhmm...