Skip to content

Commit 7bee003

Browse files
committed
Show me the cache
1 parent 90b0f9a commit 7bee003

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

js/jquery.mobile.forms.select.custom.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,14 +308,16 @@ define( [
308308
}
309309

310310
var self = this,
311-
menuHeight = self.list.parent().outerHeight(),
312-
menuWidth = self.list.parent().outerWidth(),
311+
$window = $( window ),
312+
selfListParent = self.list.parent(),
313+
menuHeight = selfListParent.outerHeight(),
314+
menuWidth = selfListParent.outerWidth(),
313315
activePage = $( ".ui-page-active" ),
314316
tScrollElem = activePage,
315-
scrollTop = $( window ).scrollTop(),
317+
scrollTop = $window.scrollTop(),
316318
btnOffset = self.button.offset().top,
317-
screenHeight = $(window).height(),
318-
screenWidth = $(window).width();
319+
screenHeight = $window.height(),
320+
screenWidth = $window.width();
319321

320322
//add active class to button
321323
self.button.addClass( $.mobile.activeBtnClass );

0 commit comments

Comments
 (0)