Skip to main content

Bug Tracker

Side navigation

#1310 closed enhancement (worksforme)

Opened June 20, 2007 09:55PM UTC

Closed July 12, 2008 11:37AM UTC

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.
Attachments (0)
Change History (2)

Changed May 12, 2008 01:23AM UTC by flesler comment:1

milestone: 1.1.31.2.4
owner: → joern

Is this really needed ? uhmm...

Changed July 12, 2008 11:37AM UTC by joern comment:2

resolution: → worksforme
status: newclosed

The difference between jQuery.version and jQuery.fn.version is really not worth the trouble.