Possible Duplicate:
JavaScript function with ‘undefined’ parameter
I'm looking the jQuery Color source code here
http://code.jquery.com/color/jquery.color-2.1.0.js
And I found that the closure function take an undefined value as it's second parameter. See below:
(function( jQuery, undefined ) {
var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
// plusequals test for += 100 -= 100
rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
// a set of RE's that can match strings and generate color tuples.
Or you can see it in the source code. Look at the second parameter.
The point I want to know is that why the second parameter is undefined?
I think it is an approach to strictly set the function to receive only one parameter.
I'm I right? Or anyone can help me out?