On Jul 12, 9:41 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> The trouble here is the mix of setters and getters. Provide the second
> argument and its a setter, leave it, and its a getter. In this case you
> have to make sure that no null or undefined is passed as the second
> argument, or you have to put that one on its own line.

i see.

> jQuery maybe should check the number of arguments to prevent that problem.

But 'undefined' and 'null' are two different things, so it should be
able to recognize null as a valid argument and undefined as lack of an
argument (though it is possible to pass undefined values). But i like
your idea better - checking arguments.length would be a more robust
solution.

Reply via email to