X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=library%2Fcropper%2Flib%2Fslider.js;h=cd16b692d62375bedb850f0e8eed6af4361b32fe;hb=8179f2f65ee589351f1ee6368c1230382898be50;hp=c0f1fc01bb8b2fe9a96c9d9c4c7412b81f51252d;hpb=0b221e8945ae785dc706d8ea9a9e8e25532c0096;p=friendica.git diff --git a/library/cropper/lib/slider.js b/library/cropper/lib/slider.js index c0f1fc01bb..cd16b692d6 100644 --- a/library/cropper/lib/slider.js +++ b/library/cropper/lib/slider.js @@ -35,12 +35,12 @@ Control.Slider.prototype = { var slider = this; if(handle instanceof Array) { - this.handles = handle.collect( function(e) { return $(e) }); + this.handles = handle.collect( function(e) { return $PR(e) }); } else { - this.handles = [$(handle)]; + this.handles = [$PR(handle)]; } - this.track = $(track); + this.track = $PR(track); this.options = options || {}; this.axis = this.options.axis || 'horizontal'; @@ -50,9 +50,9 @@ Control.Slider.prototype = { this.value = 0; // assure backwards compat this.values = this.handles.map( function() { return 0 }); - this.spans = this.options.spans ? this.options.spans.map(function(s){ return $(s) }) : false; - this.options.startSpan = $(this.options.startSpan || null); - this.options.endSpan = $(this.options.endSpan || null); + this.spans = this.options.spans ? this.options.spans.map(function(s){ return $PR(s) }) : false; + this.options.startSpan = $PR(this.options.startSpan || null); + this.options.endSpan = $PR(this.options.endSpan || null); this.restricted = this.options.restricted || false; @@ -280,4 +280,4 @@ Control.Slider.prototype = { this.options.onChange(this.values.length>1 ? this.values : this.value, this); this.event = null; } -} \ No newline at end of file +}