Is this plugin pattern a good one ?
http://jsbin.com/isobar/12/edit
My goal was to have a global variable for each instance of the plugin, base
, and the ability to call the same extern and intern method.
$('.my-plugin').myPlugin('myMethod', 'argument1', 'argument2');
or
base.myMethod('argument1', 'argument2');
Is there any specific compatibility problem or javascript errors?