From f14073a21a4226495c21d0ec4ffddccd0cbdf00a Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Mon, 8 Oct 2012 17:22:01 +0200 Subject: [PATCH] Rename the variable that to lcd --- src/jquery.uls.lcd.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/jquery.uls.lcd.js b/src/jquery.uls.lcd.js index c84667d..01c3147 100644 --- a/src/jquery.uls.lcd.js +++ b/src/jquery.uls.lcd.js @@ -249,26 +249,26 @@ }, listen: function () { - var that = this; + var lcd = this; if ( this.options.clickhandler ) { this.$element.on( 'click', 'div.row li', function() { - that.options.clickhandler.call( this, $( this ).data( 'code' ) ); + lcd.options.clickhandler.call( this, $( this ).data( 'code' ) ); } ); } // The region section need to be in sync with the map filter. - that.$element.scroll( function () { + lcd.$element.scroll( function () { var scrollTop = $( this ).position().top, scrollBottom = $( this ).height(); if ( this.offsetHeight + this.scrollTop >= this.scrollHeight / 2 ) { - that.$element.trigger( 'scrollend' ); + lcd.$element.trigger( 'scrollend' ); } // The region section need to be in sync with the map filter. var inviewRegion = 'WW'; - that.$element.find( 'div.uls-lcd-region-section' ).each( function () { + lcd.$element.find( 'div.uls-lcd-region-section' ).each( function () { var top = $( this ).position().top, height = $( this ).height();