I noticed that function expression function - scoped *local* variables
end up in jsdoc, but only with functionexpression, not function
declaration.
(function(){
/** Opera's broken hasOwnProperty -
* This patch affects browsers that fail a test for properties on
window object(Opera);
*/
var O = Object.prototype, hasOwnProperty = O.hasOwnProperty;
if(typeof window != "undefined" && hasOwnProperty &&
!hasOwnProperty.call(window, "Object")) {
O.hasOwnProperty = function(p) {
if(this === window) return (p in this) && (Object.prototype[p] !== this[p]);
return hasOwnProperty.call(this, p);
};
}})();
| O | is a local variable, but ends up in JSDoc, as if it were a
public variable. Surely, this is wrong. How do I prevent that error?
|