Closed (fixed)
Project:
Drupal core
Version:
8.1.x-dev
Component:
documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Aug 2015 at 08:31 UTC
Updated:
14 Mar 2016 at 14:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nod_Comment #3
nod_Comment #4
nod_I have one code change with this patch:
It was supposed to be renamed, see #1305882-93: drupal_html_id() considered harmful; remove ajax_html_ids to use GET (not POST) AJAX requests, but I forgot.
Need to add documentation to all Drupal.AjaxCommands stuff. Drupal.Ajax has been taken care of.
Comment #5
leolandotan commentedComment #6
leolandotan commentedHi,
Here I have worked on the additional ESLint errors for the Drupal.AjaxCommands. I also got some idea from ajax.inc's documentations.
Additional thing to note
In the Drupal.AjaxCommand alert(), I removed the response.title @param because window.alert() only accepts one parameter and I'll not update that here because it's not in the JSDoc premise.
Hope everything is in order.
Thanks!
Comment #7
nod_This is great! no more eslint warning for doc in ajax.js. It's not perfect but as decided previously, we're getting the docs in and fixing them once they are in there :)
Comment #9
catchDoesn't apply.
Would be good to fix this in the re-roll, was going to do it locally but then the patch didn't apply.
Comment #10
catchDoesn't apply to 8.1.x specifically.
Comment #11
nod_Made it apply, changed JQuery into jQuery and removed the
(optional)in parameter description because jsdoc has syntax to declare something as optional and it is already used.Comment #12
leolandotan commentedI checked the latest patch against 8.1.x. It applies cleanly with the said branch.
I'm not sure if the patch for 8.1.x will be the one to be used in 8.0.x too because I'm still new on this scenario. So I just tried to apply it into 8.0.x but it doesn't apply cleanly. Just disregard this if it's not needed.
Will just need others to double check this if it's good to go.
Thanks!
Comment #13
nod_Removed code change.
Comment #15
catchCommitted/pushed to 8.1.x, thanks!