> I'm trying to create a plugin with two entry points. You would use it
> like this:
>
> $('#someid').myPlugin.doThis(options);
> $('#anotherid').myPlugin.doThat(options);
How about one of these approaches instead:
$('#someid').myPluginDoThis(options);
$('#anotherid').myPluginDoThat(options);
or
$('#someid').myPlugin('doThis', options);
$('#anotherid').myPlugin('doThat',options);
or
$('#someid').myPlugin({
action: 'doThis'
/* other options */
});
$('#anotherid').myPlugin({
action: 'doThat'
/* other options */
});