Let\'s say you have something like the following:
var someFunc = function() {
// do something here with arguments
}
How would you corre
I futzed with this for quite some time. Here's how to do it with Google Closure Compiler:
/**
* @param {...*} var_args
*/
function my_function(var_args) {
// code that accesses the magic 'arguments' variable...
}
The key is to give your function a var_args parameter (or whatever you call it in your @param statement) even though the function doesn't actually use that parameter.