Possible duplicate:
JavaScript function with undefined parameter
I am looking for jQuery Color source code here
http://code.jquery.com/color/jquery.color-2.1.0.js
And I found that the close function takes an undefined value as the second parameter. See below:
(function( jQuery, undefined ) { var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
Or you can see it in the source code. Look at the second parameter.
What I want to know is why the second parameter is undefined?
I think this is an approach that strictly sets up a function to accept only one parameter.
I'm right? Or can someone help me?
source share