function RangeTouch(target, options) {
	    _classCallCheck(this, RangeTouch);

	    if (is.element(target)) {
	      // An Element is passed, use it directly
	      this.element = target;
	    } else if (is.string(target)) {
	      // A CSS Selector is passed, fetch it from the DOM
	      this.element = document.querySelector(target);
	    }

	    if (!is.element(this.element) || !is.empty(this.element.rangeTouch)) {
	      return;
	    }

	    this.config = Object.assign({}, defaults, options);
	    this.init();
	  }
function RangeTouch(target, options) {
	    _classCallCheck(this, RangeTouch);

	    if (is.element(target)) {
	      
	      this.element = target;
	    } else if (is.string(target)) {
	      
	      this.element = document.querySelector(target);
	    }

	    if (!is.element(this.element) || !is.empty(this.element.rangeTouch)) {
	      return;
	    }

	    this.config = Object.assign({}, defaults, options);
	    this.init();
	  }
function RangeTouch ( target , options ) { _classCallCheck ( this , RangeTouch ) ; if ( is . element ( target ) ) { // An Element is passed, use it directly this . element = target ; } else if ( is . string ( target ) ) { // A CSS Selector is passed, fetch it from the DOM this . element = document . querySelector ( target ) ; } if ( ! is . element ( this . element ) || ! is . empty ( this . element . rangeTouch ) ) { return ; } this . config = Object . assign ( { } , defaults , options ) ; this . init ( ) ; }
Setup a new instance
@param {String|Element} target
@param {Object} options
Setup a new instance