Yuvipanda has submitted this change and it was merged.

Change subject: ext.popups.core.js: Whitespace cleanup
......................................................................


ext.popups.core.js: Whitespace cleanup

Change-Id: I861ba996cce9e9baf65e0630b1c2187d15df22b6
---
M resources/ext.popups.core.js
1 file changed, 4 insertions(+), 4 deletions(-)

Approvals:
  Yuvipanda: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/ext.popups.core.js b/resources/ext.popups.core.js
index e634a32..96dc462 100644
--- a/resources/ext.popups.core.js
+++ b/resources/ext.popups.core.js
@@ -15,7 +15,7 @@
                        currentLink, // DOM element of the current anchor tag
                        cache = {},
                        curRequest, // Current API request
-                       supportsSVG =  document.implementation.hasFeature( 
'http://www.w3.org/TR/SVG11/feature#Image', '1.1' ),
+                       supportsSVG = document.implementation.hasFeature( 
'http://www.w3.org/TR/SVG11/feature#Image', '1.1' ),
                        api = new mw.Api(),
                        SIZES = {
                                portraitImage: {
@@ -138,7 +138,7 @@
                                                        x: ( thumbnail.width > 
SIZES.portraitImage.w ) ?
                                                                ( ( 
thumbnail.width - SIZES.portraitImage.w ) / -2 ) :
                                                                ( 
SIZES.portraitImage.w - thumbnail.width ),
-                                                       y: ( thumbnail.height > 
SIZES.portraitImage.h) ?
+                                                       y: ( thumbnail.height > 
SIZES.portraitImage.h ) ?
                                                                ( ( 
thumbnail.height - SIZES.portraitImage.h ) / -2 ) :
                                                                0,
                                                        width: thumbnail.width,
@@ -166,7 +166,7 @@
                                                        'xlink:href': 
thumbnail.source,
                                                        'clip-path': 
'url(#mwe-popups-mask)',
                                                        x: 0,
-                                                       y: ( thumbnail.height > 
SIZES.landscapeImage.h) ?
+                                                       y: ( thumbnail.height > 
SIZES.landscapeImage.h ) ?
                                                                ( ( 
thumbnail.height - SIZES.landscapeImage.h ) / -2 ) :
                                                                0,
                                                        width: thumbnail.width,
@@ -509,7 +509,7 @@
                        .appendTo( document.body );
 
                // SVG for masking and creating the triangle/pokey
-               if (supportsSVG ) {
+               if ( supportsSVG ) {
                        $svg = $( '<div>' )
                                .attr( 'id', 'mwe-popups-svg' )
                                .appendTo( document.body )

-- 
To view, visit https://gerrit.wikimedia.org/r/127904
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I861ba996cce9e9baf65e0630b1c2187d15df22b6
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Popups
Gerrit-Branch: master
Gerrit-Owner: Bartosz DziewoƄski <matma....@gmail.com>
Gerrit-Reviewer: Yuvipanda <yuvipa...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to