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.
modules/file/file.js has a few coding standards problems. (Reference: http://drupal.org/node/172169). In particular, there should always be a space between the special word "function" and the parentheses that follow. Example:
Bad: var foo = function() {
Good: var foo = function () {
This file requires cleanup to comply with Drupal's coding standards. This is a good issue for someone's first patch.
Comment | File | Size | Author |
---|---|---|---|
#2 | 777064.patch | 4.31 KB | spyderboy |
Comments
Comment #1
spyderboy CreditAttribution: spyderboy commentedComment #2
spyderboy CreditAttribution: spyderboy commentedComment #3
cwgordon7 CreditAttribution: cwgordon7 commentedComment #4
markabur CreditAttribution: markabur commentedLooks good, all occurrences of "function()" in the file have been replaced with "function ()".
Comment #5
aspilicious CreditAttribution: aspilicious commentedjust a note, is their a style doc about this?
Comment #6
webchickNice clean-up! :)
Committed to HEAD.
Comment #7
andypostStrange mix of unattach and detach... What is unattach? it's not documented!
Comment #8
webchickNot sure, but let's discuss in a separate issue. Please cross-link here.
Comment #9
andypostFollow up here #777790: file.module uses undocumented behaviors.unattach
Comment #10
spyderboy CreditAttribution: spyderboy commentedComment #11
spyderboy CreditAttribution: spyderboy commented