Browse Source

Fix error which could cause popup to use wrong offset context when specifying popup manually

pull/6042/head
Jack 7 years ago
parent
commit
8df7f2f2c7
1 changed files with 4 additions and 4 deletions
  1. 8
      src/definitions/modules/popup.js

8
src/definitions/modules/popup.js

@ -625,11 +625,11 @@ $.fn.popup = function(parameters) {
}
return distanceFromBoundary;
},
offsetParent: function($target) {
offsetParent: function($element) {
var
element = ($target !== undefined)
? $target[0]
: $module[0],
element = ($element !== undefined)
? $element[0]
: $target[0],
parentNode = element.parentNode,
$node = $(parentNode)
;

Loading…
Cancel
Save