I'm starting to become a plugin creator and don't fully have the hang of it. One problem is I would like to make an default where you have two numbers. And I need to be able to apply them to the code.
What I mean is like this:
var defaults = {
numbers: [1, 2]
}
I like how the jquery team did it with draggable:
$('#drag').draggable({
grid: [1, 100]
});
Which is something I would like to do. Any Idea how?