Cast strings to numbers

Change-Id: Iafbb0ed5197cc7e92ebfc2fb9365c1903ce9ffef
This commit is contained in:
Ed Sanders 2017-10-27 10:49:01 +01:00
parent 908b7c808b
commit 28b436eb16

View file

@ -579,8 +579,8 @@
this.alignPointersAndLines();
this.resetRevisionStylesBasedOnPointerPosition( this.getRevisionsElement() );
this.refreshDiffView(
$( '.mw-revslider-revision[data-pos="' + newPointerPos + '"]' ).attr( 'data-revid' ),
$( '.mw-revslider-revision[data-pos="' + oldPointerPos + '"]' ).attr( 'data-revid' ),
+$( '.mw-revslider-revision[data-pos="' + newPointerPos + '"]' ).attr( 'data-revid' ),
+$( '.mw-revslider-revision[data-pos="' + oldPointerPos + '"]' ).attr( 'data-revid' ),
pushState
);
},