Return customized default values for each in a plugin
Is it possible to get what the customized default values are for each element that a plugin is applied to?
I have two defaults:
-
$.fn.example.defaults = {
animateRate: 100,
animateSpeed: 250
};
And I'm initializing the plugin:
-
$(function(){
$("#example_one").example({
animateRate: 500,
animateSpeed: 1000
});
$("#example_two").example({
animateRate: 1500
});
});
What I want to get is what the animateRate value is for each. So doing $.fn.example.defaults.animateRate or $(this).example.defaults.animateRate just gives me what the plugin defaults values are but I want to get what the customized default values are for each.
Any ideas?
Thanks!