Merge pull request #4092 from tano-systems/pr/20200524-luci-base-fix-nested

luci-base: ui.js: fix function declaration in nested statement
This commit is contained in:
Jo-Philipp Wich 2020-05-24 17:04:35 +02:00 committed by GitHub
commit edeb146eb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1176,7 +1176,7 @@ var UIDropdown = UIElement.extend(/** @lends LuCI.ui.Dropdown.prototype */ {
ul.style.maxHeight = (vpHeight * 0.5) + 'px';
ul.style.WebkitOverflowScrolling = 'touch';
function getScrollParent(element) {
var getScrollParent = function(element) {
var parent = element,
style = getComputedStyle(element),
excludeStaticParent = (style.position === 'absolute');