From eae2c4b358af3ebfae258abfe77eeace48fcefcb Mon Sep 17 00:00:00 2001 From: TJ VanToll Date: Wed, 28 Aug 2013 09:17:01 -0400 Subject: [PATCH] Draggable: Safe activeElement access from iFrames for IE9, prevent window focus changes in IE9+. Fixed #9520 - Draggable: Browser window drops behind other windows in IE9/10 --- ui/jquery.ui.draggable.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js index 2bdc202553..3b18f28f01 100644 --- a/ui/jquery.ui.draggable.js +++ b/ui/jquery.ui.draggable.js @@ -76,9 +76,19 @@ $.widget("ui.draggable", $.ui.mouse, { _mouseCapture: function(event) { - var o = this.options; + var document = this.document[ 0 ], + o = this.options; - $( document.activeElement ).blur(); + // support: IE9 + // IE9 throws an "Unspecified error" accessing document.activeElement from an