Reiterate over a jQuery plugin's this.each()

Posted by eth0 on Stack Overflow See other posts from Stack Overflow or by eth0
Published on 2010-04-03T17:25:33Z Indexed on 2010/04/03 17:33 UTC
Read the original article Hit count: 170

Filed under:
|
|

Hi, I'm making a plugin and one of the options is a standard callback. I want the user to be able to re-run the jQuery plugin's this.each() which basically re-runs the plugin, for example;

callback: function(){
    // some code to rerun the plugin here after 10 seconds
}

I know I can do this like so: $(this).plugin_name(); but it won't contain any of the options I've specified.

Any help would be appreciated.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript