Hi, Wow, thanks to both of you. Wouldn't have thought about such an construct. Maybe because i'm not that familiar with javascript at all. Somehow i thought you can't access an object while creating it. But also the way Balazs was mentioning about jmap looks interesting. I will have a closer look into it soon. For now i will try out the way mentioned above. The only thing i don't like in this solution is, that after calling the method u can't add another right after like :
$('#example').pluginname.doSomethingPublic().doSomethingElse(); is there a solution to it, except the way jmap does.