How do I return a value when using command structure-style plugin design for public methods?
I am using Keith Wood's
plugin framework, and I've come across a situation where I would like a public function within my plugin to make a calculated value available to the calling code.
For example:
alert($("selector").myplugin("add", 1, 1));
I realize that actually returning a value here would break the jquery chain, and I am open to other options, but I'm not sure how to manage it.
Thanks!