Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up of #1664940: [Policy, patch] Decide on JSHint configuration and part of #1415788: Javascript winter clean-up
Fix any warnings or errors the tool finds.
Check manually that the fixes did not break any functionalities
Create patch and upload for the testbot.
core/modules/editor/js/editor.js: line 72, col 17, Expected '===' and instead saw '=='.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1955288-core-js-jshint-editor-1.patch | 688 bytes | lilster66 |
Comments
Comment #1
lilster66 CreditAttribution: lilster66 commentedHi,
I've added a patch for this. I got the following errors:
Line 72: if (trigger == 'serialize') {
Expected '===' and instead saw '=='.
Line 109: })(jQuery, Drupal);
'jQuery' is not defined.
Line 109: })(jQuery, Drupal);
'Drupal' is not defined.
I don't think the jQuery and Drupal lines are an issue.
Comment #2
nod_They're not indeed, check the config file in the issue linked in OP. There are a bunch of globals defined.
Tested & works well, thanks :)
Comment #3
lilster66 CreditAttribution: lilster66 commentedCheers :-)
I'm at a starting to contribute to Drupal event, http://www.meetup.com/a-bit-of-everything-drupal/. Thought I'd start with something straight forward :-P
Comment #4
alexpottCommitted fd6594b and pushed to 8.x. Thanks!