I have a plugin where the original code is ...
// when the DOM is ready...
$(document).ready(function() {
var $panels = $('.slider .scrollContainer > div');
var $container = $('.slider .scrollContainer');
However this assumes that it just 'runs' when the DOM loads. I'd like to use it more like...
$('.slider').slider();
So my question is - how can I reference the given object in a plugin development? I've been searching around and most tutorials only cover hard-coded id's in plugin development.