Skip to content

editorial-comments.js - replace faulty $() with jQuery() to match the rest of file#506

Closed
jerclarke wants to merge 2 commits intoAutomattic:masterfrom
jerclarke:patch-1
Closed

editorial-comments.js - replace faulty $() with jQuery() to match the rest of file#506
jerclarke wants to merge 2 commits intoAutomattic:masterfrom
jerclarke:patch-1

Conversation

@jerclarke
Copy link
Copy Markdown
Contributor

  • On one of my sites, I was getting a site-breaking js error for $ not defined caused by line 26 of this file, which had a $() jQuery command
  • For some reason, most of my sites never had this problem, but this one did. Maybe it's a combination of plugins and a common one makes $() available by coincidence.
  • Either way, the surrounding code makes it obvious that editorial-comments relies on jQuery() being available, rather than $()
  • This patch just fixes that one line (which was the most recently added, it's part of the "notified list" feature added in 0.9) to match the rest and use jQuery() like a good kid.

… the rest of file

- On one of my sites, I was getting a site-breaking js error for `$ not defined` caused by line 26 of this file, which had a `$()` jQuery command
- For some reason, most of my sites never had this problem, but this one did. Maybe it's a combination of plugins and a common one makes `$()` available by coincidence.
- Either way, the surrounding code makes it obvious that `editorial-comments` relies on `jQuery()` being available, rather than `$()`
- This patch just fixes that one line (which was the most recently added, it's part of the "notified list" feature added in 0.9) to match the rest and use `jQuery()` like a good kid.
@szepeviktor
Copy link
Copy Markdown

szepeviktor commented Sep 11, 2019

@jerclarke #499 is already there.

@szepeviktor
Copy link
Copy Markdown

#499 was merged!

@dchymko
Copy link
Copy Markdown
Contributor

dchymko commented Oct 31, 2019

Closing as #499 addressed this.

@dchymko dchymko closed this Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants