I'm trying to make a plugin and am running into some problems:
(function($){
var users = {};
$.fn.plugin = function(){
//blah, but alters users
}
$.fn.utility_function = function(){
// uses users
}
});
What's happening is that when I run two instances of this plugin, "users" ends up having the same value for each instance of the plugin. How do I make them unique?