Ricordisamoa has uploaded a new change for review. https://gerrit.wikimedia.org/r/262864
Change subject: OO.ui.Element: unsupport Internet Explorer 8 ...................................................................... OO.ui.Element: unsupport Internet Explorer 8 Courtesy of df1019c49d30b8c87b144ecfeea200684c5b4a73 Change-Id: Ia80fbb37d99d4f1c85d4264ab66175b22106c853 --- M src/Element.js 1 file changed, 4 insertions(+), 14 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/64/262864/1 diff --git a/src/Element.js b/src/Element.js index 9f5e015..6b770a5 100644 --- a/src/Element.js +++ b/src/Element.js @@ -317,9 +317,7 @@ */ OO.ui.Element.static.getWindow = function ( obj ) { var doc = this.getDocument( obj ); - // Support: IE 8 - // Standard Document.defaultView is IE9+ - return doc.parentWindow || doc.defaultView; + return doc.defaultView; }; /** @@ -434,14 +432,8 @@ */ OO.ui.Element.static.getBorders = function ( el ) { var doc = el.ownerDocument, - // Support: IE 8 - // Standard Document.defaultView is IE9+ - win = doc.parentWindow || doc.defaultView, - style = win && win.getComputedStyle ? - win.getComputedStyle( el, null ) : - // Support: IE 8 - // Standard getComputedStyle() is IE9+ - el.currentStyle, + win = doc.defaultView, + style = win.getComputedStyle( el, null ), $el = $( el ), top = parseFloat( style ? style.borderTopWidth : $el.css( 'borderTopWidth' ) ) || 0, left = parseFloat( style ? style.borderLeftWidth : $el.css( 'borderLeftWidth' ) ) || 0, @@ -466,9 +458,7 @@ OO.ui.Element.static.getDimensions = function ( el ) { var $el, $win, doc = el.ownerDocument || el.document, - // Support: IE 8 - // Standard Document.defaultView is IE9+ - win = doc.parentWindow || doc.defaultView; + win = doc.defaultView; if ( win === el || el === doc.documentElement ) { $win = $( win ); -- To view, visit https://gerrit.wikimedia.org/r/262864 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia80fbb37d99d4f1c85d4264ab66175b22106c853 Gerrit-PatchSet: 1 Gerrit-Project: oojs/ui Gerrit-Branch: master Gerrit-Owner: Ricordisamoa <ricordisa...@openmailbox.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits