Open GoogleCodeExporter opened 9 years ago
I forgot to say above that the -a option is required for the above examples to
work. Secondly, assignments that are the result of an immediately called
closure are also incorrectly documented, but as global fields.
(function ()
{
var testf;
// Will be considered global.
testf = (function ()
{
return function ()
{
3;
};
}());
}());
(function ()
{
// Will not be considered global.
var testingf = (function ()
{
return function ()
{
3;
};
}());
}());
Original comment by mcbain....@gmail.com
on 11 Jan 2012 at 2:10
Another testcase. The assignment to the argument will be documented as global,
even though it shouldn't be. Same as the previous testcases, this requires the
-a option.
/** @ignore */
function willBeIgnored (shouldntBeDocumentedButWillBeAnyway)
{
shouldntBeDocumentedButWillBeAnyway = function ()
{
};
}
Original comment by mcbain....@gmail.com
on 11 Jan 2012 at 2:44
Original issue reported on code.google.com by
mcbain....@gmail.com
on 11 Jan 2012 at 1:57