Method that passes options to its object

Posted by user321399 on Stack Overflow See other posts from Stack Overflow or by user321399
Published on 2010-04-20T14:40:22Z Indexed on 2010/04/20 14:43 UTC
Read the original article Hit count: 121

Filed under:

In JavaScript I'd like to take an object and pass a parameter to it and based on the parameter hve a method that will pass settings to the parameter:

functionName( parameter , settings );

Or

functionName( parameter ).methodName( settings );

© Stack Overflow or respective owner

Related posts about JavaScript