Update jquery.uls from upstream

Performance improvements by matmarex

Change-Id: Ie89bd56702dec231a8c27f9cf8eeb7bbffe9b251
This commit is contained in:
Santhosh Thottingal
2013-07-04 16:20:35 +05:30
parent f9498661a2
commit 44c6b50d84
4 changed files with 27 additions and 48 deletions

View File

@@ -287,11 +287,6 @@
scrollTop = $ulsLanguageList.position().top,
scrollBottom = $ulsLanguageList.height();
if ( lcd.options.lazyload && lcd.options.source.val() === '' ) {
if ( this.offsetHeight + this.scrollTop >= this.scrollHeight / 2 ) {
lcd.$element.trigger( 'scrollend' );
}
}
// The region section need to be in sync with the map filter.
inviewRegion = 'WW';
lcd.$element.find( 'div.uls-lcd-region-section' ).each( function () {
@@ -332,8 +327,7 @@
$.fn.lcd.defaults = {
languages: null,
showRegions: ['WW', 'AM', 'EU', 'ME', 'AF', 'AS', 'PA'],
lazyload: true
showRegions: ['WW', 'AM', 'EU', 'ME', 'AF', 'AS', 'PA']
};
$.fn.lcd.Constructor = LanguageCategoryDisplay;