Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Jun 2015 at 20:11 UTC
Updated:
12 Sep 2015 at 06:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
eiriksmComment #2
borisson_This is not just a documentation addiction, you've also moved
checkEmptyRegionsaround.All documentation additions look good but I think the move of checkEmptyRegions should be in a different issue.
Comment #3
eiriksmGood point.
Just very tempting to clean up things when one looks through files :)
Comment #4
eiriksmAlso opened issue for moving the function (#2503981: Move checkEmptyRegions to named function and before first use (block.js))
Comment #5
nod_Yeah it can be hard to stay on track. Please add a comment in #1415788: Javascript winter clean-up about that refactor so that we don't lose it. (may want to add a new "Refactor" section in the issue summary so it's not lost in the comments).
Technically context type is
HTMLDocument|HTMLElement.Use
returnnotreturns."Function to check empty" might be better as "Checks empty".
Comment #6
eiriksmFixed. I use @returns at work, so it probably slipped in there :)
Agreed.
Also found another 2 long lines that I fixed (not sure why i did not see them earlier).
Comment #7
nod_Looks good to me :) thanks!
Fixes the 5 eslint jsdoc warnings.
Comment #8
jhodgdonI patched Core and took a look at the two block module .js files. This looks pretty good but there are a couple of things I think still could/should be fixed:
This is probably going to format on a JSDoc site like this:
Text search input: input.block-filter-text Target element: input.block-filter-text[data-element] Source text: .block-filter-text-source
That is probably not what we want... so it should probably be made into a bullet list or three separate paragraphs?
If it's a bullet list, our PHP standards require that it be preceded by an explanatory line ending in a : (which seems like a good idea).
Drupal.behaviors.blockFilterByText :: attach
Drupal.behaviors.blockHighlightPlacement :: attach
Comment #9
eiriksm1. Hm. First of all, you are entirely right about the output. It should not be like that. But I am not sure it should go in a bullet list, so I rewrote it to be separate paragraphs instead. Open to suggestions though.
2 and 3: Fixed.
Comment #10
eiriksmComment #11
nod_Reroll.
Using paragraphs look OK. We can improve later, let's get rid of the eslint warnings first.
Comment #12
webchickCommitted and pushed to 8.0.x. Thanks!