(function($) {
"use strict";
var DEBUG = false, // make true to enable debug output
PLUGIN_IDENTIFIER = "RangeSlider";
var RangeSlider = function( element, options ) {
this.element = element;
this.options = options || {};
this.defaults = {
output: {
prefix: '', // function or string
suffix: '', // function or string
format: function(output){
return output;
}
},
change: function(event, obj){}
};
// This next line takes advantage of HTML5 data attributes
// to support customization of the plugin on a per-element
// basis.
this.metadata = $(this.element).data('options');
};
RangeSlider.prototype = {
////////////////////////////////////////////////////
// Initializers
////////////////////////////////////////////////////
init: function() {
if(DEBUG && console) console.log('RangeSlider init');
this.config = $.extend( true, {}, this.defaults, this.options, this.metadata );
var self = this;
// Add the markup for the slider track
this.trackFull = $('