partha-das / jsdt-jquery

Automatically exported from code.google.com/p/jsdt-jquery
0 stars 0 forks source link

No suggestions when $ is wrapped as function parameter #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have a wrapper function as the following:
(function($)
{
})(jQuery);

2. Write the example from the Google code home page in the wrapper function: 
$('a').ad

3. No suggestions appear?

Can the plugin override the $ completely ? Or try to guess the parameter types?

I'm trying this:
(
/**
 * Init
 * @param {jQuery} jQuery
 */
function($)
{
    $('asd').add
})(jQuery);

Not working.

Latest version on Windows.

Original issue reported on code.google.com by antito...@gmail.com on 29 Jul 2011 at 6:06

GoogleCodeExporter commented 9 years ago
Actually the $('asd').add example does not work even on global scope ?

Original comment by antito...@gmail.com on 29 Jul 2011 at 6:15

GoogleCodeExporter commented 9 years ago
OK. I solved this one. Not a bug but a confusion. When enabling JavaScript 
libraries for the project make sure you tick jQuery in the Global SyperType 
section in order to be available everywhere.

Original comment by antito...@gmail.com on 17 Aug 2011 at 4:13