Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
rangeslider: minor performance improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
arschmitz committed Dec 31, 2012
1 parent 7b81f79 commit 9ff7722
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/widgets/forms/rangeslider.js
Expand Up @@ -23,9 +23,9 @@ define( [ "jquery", "../../jquery.mobile.core", "../../jquery.mobile.widget", ".
var secondLabel,
$el = this.element,
elClass = this.options.mini ? "ui-rangeslider ui-mini" : "ui-rangeslider",
_inputFirst = $el.find( "input:first" ),
_inputLast = $el.find( "input:last" ),
label = $el.find( "label:first" ),
_inputFirst = $el.find( "input" ).first(),
_inputLast = $el.find( "input" ).last(),
label = $el.find( "label" ).first(),
_sliderFirst = $.data( _inputFirst.get(0), "mobileSlider" ).slider,
_sliderLast = $.data( _inputLast.get(0), "mobileSlider" ).slider,
firstHandle = $.data( _inputFirst.get(0), "mobileSlider" ).handle,
Expand Down Expand Up @@ -175,8 +175,8 @@ define( [ "jquery", "../../jquery.mobile.core", "../../jquery.mobile.widget", ".
},

_updateHighlight: function() {
var min = parseInt( $.data( this._inputFirst.get(0), "mobileSlider" ).handle[0].style.left, 10 ),
max = parseInt( $.data( this._inputLast.get(0), "mobileSlider" ).handle[0].style.left, 10 ),
var min = parseInt( $.data( this._inputFirst.get(0), "mobileSlider" ).handle.get(0).style.left, 10 ),
max = parseInt( $.data( this._inputLast.get(0), "mobileSlider" ).handle.get(0).style.left, 10 ),
width = (max - min);

this.element.find( ".ui-slider-bg" ).css({
Expand Down

0 comments on commit 9ff7722

Please sign in to comment.