I want to call a function inside my jquery-plugin (widget-factory based).
Looks like this:
(function( $, window) {
$.widget("mobile.multiview",$.mobile.widget, {
stackUp: function (source, event, data) {
...
}
}
}) (jQuery,this);
I want to call stackUp from outside of the plugin. The problem: I don't know how to pass the parameters correctly. This does not work:
$('#trigger').multiview("stackUp('pagination', fakeEvent, fakeData)");
Can somebody point me to the correcty syntax of calling a public function inside a plugin and passing along parameters?
UPDATE:
I can call the function like this:
$('#trigger').multiview('stackUp');
but how can I pass the parameters?