[MediaWiki-commits] [Gerrit] mediawiki...VisualEditor[master]: Use slice instead of substring per code conventions
jenkins-bot has submitted this change and it was merged. Change subject: Use slice instead of substring per code conventions .. Use slice instead of substring per code conventions Change-Id: I5de8b485d287db097f2ad63a7edf75f86a86822d --- M modules/ve-mw/ui/widgets/ve.ui.MWAceEditorWidget.js 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Krinkle: Looks good to me, approved jenkins-bot: Verified diff --git a/modules/ve-mw/ui/widgets/ve.ui.MWAceEditorWidget.js b/modules/ve-mw/ui/widgets/ve.ui.MWAceEditorWidget.js index b14de0e..187c9d2 100644 --- a/modules/ve-mw/ui/widgets/ve.ui.MWAceEditorWidget.js +++ b/modules/ve-mw/ui/widgets/ve.ui.MWAceEditorWidget.js @@ -100,7 +100,7 @@ */ ve.ui.MWAceEditorWidget.prototype.setupEditor = function () { var basePath = mw.config.get( 'wgExtensionAssetsPath', '' ); - if ( basePath.substring( 0, 2 ) === '//' ) { + if ( basePath.slice( 0, 2 ) === '//' ) { // ACE uses web workers, which have importScripts, which don't like relative links. basePath = window.location.protocol + basePath; } -- To view, visit https://gerrit.wikimedia.org/r/312864 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I5de8b485d287db097f2ad63a7edf75f86a86822d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VisualEditor Gerrit-Branch: master Gerrit-Owner: TheDJ Gerrit-Reviewer: Alex Monk Gerrit-Reviewer: Jforrester Gerrit-Reviewer: Krinkle Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...VisualEditor[master]: Use slice instead of substring per code conventions
TheDJ has uploaded a new change for review. https://gerrit.wikimedia.org/r/312864 Change subject: Use slice instead of substring per code conventions .. Use slice instead of substring per code conventions Change-Id: I5de8b485d287db097f2ad63a7edf75f86a86822d --- M modules/ve-mw/ui/widgets/ve.ui.MWAceEditorWidget.js 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor refs/changes/64/312864/1 diff --git a/modules/ve-mw/ui/widgets/ve.ui.MWAceEditorWidget.js b/modules/ve-mw/ui/widgets/ve.ui.MWAceEditorWidget.js index b14de0e..187c9d2 100644 --- a/modules/ve-mw/ui/widgets/ve.ui.MWAceEditorWidget.js +++ b/modules/ve-mw/ui/widgets/ve.ui.MWAceEditorWidget.js @@ -100,7 +100,7 @@ */ ve.ui.MWAceEditorWidget.prototype.setupEditor = function () { var basePath = mw.config.get( 'wgExtensionAssetsPath', '' ); - if ( basePath.substring( 0, 2 ) === '//' ) { + if ( basePath.slice( 0, 2 ) === '//' ) { // ACE uses web workers, which have importScripts, which don't like relative links. basePath = window.location.protocol + basePath; } -- To view, visit https://gerrit.wikimedia.org/r/312864 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5de8b485d287db097f2ad63a7edf75f86a86822d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VisualEditor Gerrit-Branch: master Gerrit-Owner: TheDJ ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits