title: scriptsharp & jquery plugin : how to provide additional methods on plugin
body: <p>I create a jquery plugin with scriptsharp... how can I define additional methods, and access the options of the plugin? </p>
  
  <p>As far as I can see, there is only one method available and the options are not stored with the elements?</p>
  
  <p>e.g. I want to be able to write : </p>
  
  <p>jQuery.Select("#myDiv").Plugin().somemethod();</p>
  
  <p>in somemethod I want to access MyPluginOptions...</p>
  
  <p><strong>update: 3 nov 2011:</strong>
  as far as I can see, the only option I have now, is to define the method as follows:</p>
  
  <pre><code>public static jQueryObject MyPlugin(object methodOrOptions, object parm1, object parm2 )
  </code></pre>
  
  <p>ok, first parameter, methodOrOptions is ugly, but probably the only way, due to the nature of javascript.
  but then, I have to specify as many extra arguments, as any extra method would need. It' a pity I can't use params object[] here. (<strong>update 4 nov:</strong> no support for optional parameters as well...)</p>
  
  <p>Still the whole pattern seems 'not right' to me, ok, due to difference between c# and javascript, but maybe scriptsharp compiler could help us, to overcome mismatch...</p>