[jQuery] how to access plugin settings
I feel like this should be an easy question to answer so my A.D.D. is
making it hard to trace back through the jQuery source for the
answer. I need to be able to access (and edit) plugin settings for
interface elements after the plugin has been instantiated.
Here is my specific example...
Say I have the following code:
jQuery('#widget').Resizable(
{
minWidth: 350,
minHeight: 500,
minTop: 0,
minLeft: 0,
maxRight: jQuery('body').width(),
maxBottom: jQuery('body').height(),
dragHandle: '#handle',
handlers: {
se: '#btmright',
}
}
);
I want to be able to tie the maxRight and maxBottom values to the
window resize event:
jQuery(window).resize( function() {
// touch the resizable settings
} );
This feels like such a dumb question... How do I get at those values?
In other cases I've simply destroyed the plugin and reinstantiated it,
but that won't work properly here.