ff2 compatibility fix
authornamiltd <namiltd@users.noreply.github.com>
Sun, 1 Sep 2019 10:04:06 +0000 (12:04 +0200)
committernamiltd <namiltd@users.noreply.github.com>
Sun, 1 Sep 2019 10:04:06 +0000 (12:04 +0200)
js/jQuery/jquery.js

index 551e207..6b22cc0 100644 (file)
@@ -7286,10 +7286,10 @@ jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
                                // Support: IE8 only
                                // getClientRects() errors on disconnected elems
                                ( jQuery.contains( elem.ownerDocument, elem ) ?
-                                       elem.getBoundingClientRect().left -
+                                       (!elem.getBoundingClientRect?0:(elem.getBoundingClientRect().left -
                                                swap( elem, { marginLeft: 0 }, function() {
                                                        return elem.getBoundingClientRect().left;
-                                               } ) :
+                                               } ) ) ):
                                        0
                                )
                        ) + "px";