Page MenuHomePhabricator

CodeEditor causes "TypeError: $.ucFirst is not a function" due to missing dependency
Closed, ResolvedPublic

Description

The code uses a function from "jquery.mwExtension" without declaring a dependency on it:
https://github.com/wikimedia/mediawiki-extensions-CodeEditor/blob/3e98b4544f2e4798d921808d9d2ad4e5999ef1d9/modules/jquery.codeEditor.js#L551

This results in:

TypeError: $.ucFirst is not a function

Event Timeline

He7d3r raised the priority of this task from to Needs Triage.
He7d3r updated the task description. (Show Details)
He7d3r added projects: JavaScript, Regression.
He7d3r subscribed.
He7d3r added a subscriber: ori.

Change 220382 had a related patch set uploaded (by Mattflaschen):
ucFirst has been deprecated, so inline it

https://gerrit.wikimedia.org/r/220382

Change 220382 merged by jenkins-bot:
ucFirst has been deprecated, so inline it

https://gerrit.wikimedia.org/r/220382

Krinkle triaged this task as High priority.
Krinkle subscribed.