[jQuery] Plugin API the jQuery way

[jQuery] Plugin API the jQuery way

Hei there,
since <a href="http://marcgrabanski.com/article/jquery-tools-vs-jquery-ui">http://marcgrabanski.com/article/jquery-tools-vs-jquery-ui</a> it isn't nice to make your own plugin api.
Now i am trying to build a plugin api for  a pagination in the jquery ui way - llike that
<pre class="javascript">$myDiv.pagination<span class="br0">(</span><span class="st0"></span><span class="st0">'click'</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span><span class="br0">)</span><span class="br0">{</span> ... <span class="br0">}</span><span class="br0">)</span><span class="sy0">; </span></pre>
but the whole ui construct with core and so on don't let me see the way i have to implement the api.
does somebody know an easy plugin where i could spy in ?
thx chris