Closed coreyaus closed 7 years ago
Thanks for contributing. I have added some comments about "nil".
Perhaps I'm missing something, but I couldn't see any comments - where should I look to review those? Is it just a matter of replacing nil
with null
or an empty string, or is it more complex? I figured it was useful to include the full object structure even if there is no author (and set each attribute to a nil or empty value in that case). Happy to change as required, and no worries if it's more hassle than it's worth to explain the issues with nil
. Cheers
I think my main point is that I have never heard of "nil" before for assignment of an empty value. Its always null or undefined. If you change those to null's then I can merge :-)
Fair enough. I think it was a bit of ruby syntax creeping into my JS. I've just made that edit 👍 Thanks mate!
Thanks for contributing!
At the moment the dataOnly version returns an
author
attribute containing an awkward HTML string. This update includes discrete attributes for the author'sname
,screen_name
andprofile_url
. It adds to the existing data structure without altering it for any users who already depend on the existingauthor
attribute.PS: Love this tool, and no stress if this change doesn't suit for whatever reason 👍
PPS: This commit currently only edits the standard JS file, not the minified file