jQuery 1.4.2 VSDoc

Viewed 22178

Where can I get the VSDoc for jQuery 1.4.2?

15 Answers

As well as renaming the VSDoc file (1.4.1) you may also have to change the jQuery version number used in the 1.4.1-vsdoc.js file to 1.4.2.

See line# 224,

// The current version of jQuery being used
    jquery: "1.4.2",

For the time being you could always just rename "jquery-1.4.1-vsdoc.js" to "jquery-1.4.2-vsdoc.js" and when they release the new vsdoc version just replace it.

Note: I had to then modify the script source path and then change it back again to force vs to pick up the vsdoc. I just added a forward slash at the start of the src attribute value and then removed it.

John T said:

For what it's worth, and from this question:

jQuery 1.4.3 vsdoc

Someone has updated the jQuery vsdoc for JQuery 1.4.3. It's at:

http://appendto.com/community/vsdoc

@John T: Thanks for the links!

For users of the v1.4.4 VSDOC file supplied here, there is a slight error that breaks IntelliSense; at line 1751 the file reads:

jQuery.proxy = function(function, context){

This causes Visual Studio to show the following error:

Error updating JScript IntelliSense: <your path>\jquery-1.4.4-vsdoc.js: Expected identifier @ 1750:24 (or near enough).

Update this line to read:

jQuery.proxy = function(method, context){

This bug was found and resolved in VS2008.

Using jQuery 1.4.4, and the vsdoc from http://appendto.com/community/vsdoc (as well as the fix for line ~1750), I can update my Intellisense without error; however, whenever I type:

$.

Not only do I not get any relevant Intelliprompts, but I see:

Javascript Intellisense Message: JSIntellisense:Internal/(3:4) : Object required

This references the first function in my .js file:

; (function ($) { $.fn.MobileFunction = function (options) {

   //My Function
};

})(jQuery);

I do have one warning: "Expected Expression" on the first closing paren in })(jQuery); but I cannot find a syntax error in the code. Even with the entire function commented out, Intellisense produces no output.

Related