Using the jQuery UI Widget Factory, how do I set a property that holds the same value across all instances of the plugin? (So that if the value is changed in one instance, it is changed across all instances.)
eg
$.widget( "myplugin" , {
avalue : 1,
});
One way to do this would be to store the value in a closure like this: