Overloading a client plugin (IScriptObject) method

Hello,

What is the best way to overload a js_method in an implementation of IScriptObject so that its methods are properly documented in the method editor?

Only one version of the method shows up in the method editor. Looking at the dialog plugin I can see that these methods must be overloaded because of the optional parameters. But in this case they share the same first few parameters. What can i do if my overloaded methods share no common parameters?

Thanks,
Sean

You mean ‘how do I show it to the user’ I presume?

  1. Why do you want that in the first place?
  2. Be carefull, since javascript doesn’t deal with all variable types you can create errors!

The only way I can think of is create a very clear tooltip/sample…