diff --git a/plugins/RemoteControl/webroot/js/jquery-ui.js b/plugins/RemoteControl/webroot/js/jquery-ui.js index 1a613bf2f94b3..db2fe5a137b4e 100644 --- a/plugins/RemoteControl/webroot/js/jquery-ui.js +++ b/plugins/RemoteControl/webroot/js/jquery-ui.js @@ -907,9 +907,7 @@ $.fn.position = function( options ) { var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions, // Make sure string options are treated as CSS selectors - target = typeof options.of === "string" ? - $( document ).find( options.of ) : - $( options.of ), + target = $( document ).find( options.of ), within = $.position.getWithinInfo( options.within ), scrollInfo = $.position.getScrollInfo( within ),