Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get jQuery Visual Studio 2010 IntelliSense to work inside a noconflict wrapper

I added the vsdoc jquery reference in my js file:

/// <reference path="../jquery-1.4.1.vsdoc.js" />

This works fine, but once I write inside a no conflict wrapper...

(function ($) {

...here...

})(jQuery);

...IntelliSense does not work.

Why is this, and is there any way to solve this?

like image 498
olemarius Avatar asked Dec 22 '22 23:12

olemarius


1 Answers

Try adding the <param /> tag at the beginning of your wrapper function:

/// <reference path="../jquery-1.4.1.vsdoc.js" />
(function($) { /// <param name="$" type="jQuery" />

...

})(jQuery);
like image 131
uhleeka Avatar answered Jan 23 '23 16:01

uhleeka