I'm using Visual Studio 2008 SP1 with KB958502 (.vsdoc hotfix). This allows us to use IntelliSense to auto-complete JavaScript.
When I use the jquery-1.6.1-vsdoc, there are three errors:
Error updating JScript IntelliSense: jquery-1.6.1-vsdoc.js: 'rootjQuery' is undefined @ 66:2
Expected expression @ 1505:16
Expected expression @ 2649:15
For #3, Line 2649 is "checkClone": ,
and simply needs a true or false to be assigned.
For #2, Line 1505 is "triggered": };
and simply needs to be changed to "triggered": {} };
Where I'm getting stuck, though, is #1. Line 66 is a comment line, so most likely it's referring to Line67 which is return new jQuery.fn.init( selector, context, rootjQuery );
Anyone know how to fix this? Why would MS put something out that has 3 errors right off the bat? Surely, they test this before putting it out there.
I´ve been searching for an answer to VS2008 intellisense, and I've found the solution...
Add the next at line 67: rootjQuery = jQuery(document);
And that make the intellisense of VS2008 works.
By the time I don't know if that is the best solution but it works. :P
Best regards.
Apolo!