-
-
Save jzaefferer/c5faba40bb09b2b30f3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js | |
index 7d30e4b..4c73c10 100644 | |
--- a/ui/jquery.ui.position.js | |
+++ b/ui/jquery.ui.position.js | |
@@ -86,17 +86,13 @@ $.fn.position = function( options ) { | |
// make a copy, we don't want to modify arguments | |
options = $.extend( {}, options ); | |
- var target = $( options.of ), | |
+ var atOffset, targetWidth, targetHeight, targetOffset, basePosition, | |
+ target = $( options.of ), | |
within = $.position.getWithinInfo( options.within ), | |
scrollInfo = $.position.getScrollInfo( within ), | |
targetElem = target[0], | |
collision = ( options.collision || "flip" ).split( " " ), | |
- offsets = {}, | |
- atOffset, | |
- targetWidth, | |
- targetHeight, | |
- targetOffset, | |
- basePosition; | |
+ offsets = {}; | |
if ( targetElem.nodeType === 9 ) { | |
targetWidth = target.width(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment