Gerrit Patch Uploader has uploaded a new change for review. https://gerrit.wikimedia.org/r/255987
Change subject: Avoid accessing undefined context ...................................................................... Avoid accessing undefined context The delayed update of the status bar fails when the CodeEditor is disabled in the meantime. Bug: T119869 Change-Id: I6b23148f7a3d79021b87ad5f0f537eda9b68970f --- M modules/jquery.codeEditor.js 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CodeEditor refs/changes/87/255987/1 diff --git a/modules/jquery.codeEditor.js b/modules/jquery.codeEditor.js index 791f844..c26929b 100644 --- a/modules/jquery.codeEditor.js +++ b/modules/jquery.codeEditor.js @@ -518,7 +518,7 @@ shortestDistance = Infinity, closestAnnotation, currentLine = editor.selection.lead.row, - annotations = context.codeEditor.getSession().getAnnotations(), + annotations = editor.getSession().getAnnotations(), closestType; // Reset the next annotation -- To view, visit https://gerrit.wikimedia.org/r/255987 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6b23148f7a3d79021b87ad5f0f537eda9b68970f Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CodeEditor Gerrit-Branch: master Gerrit-Owner: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits