These are chat archives for arenanet/api-cdi

11th
Nov 2016
Jonathan Andrist
@rwfrk_twitter
Nov 11 2016 00:47
My preference : Anything that comes in infinite scrolling needs a paginated view option!
windwarrior
@windwarrior
Nov 11 2016 00:49
blob
better or worse?
and stay away from negative margins, they are bad for your sanity
windwarrior
@windwarrior
Nov 11 2016 02:36
pushed the new 'timeline' view, its only active on >1200px tho, so if you dont like it, halftile it :)
windwarrior
@windwarrior
Nov 11 2016 14:54
@Coffee4cr I've added your parent suggestion
its an expander tho.. because it makes another call to reddit's api
(and I am pretty sure there is a better call to make... but reddits api is poorly documented)
Edgar Doiron
@Coffee4cr
Nov 11 2016 14:58
omg that's amazing!
Thanks! <3
:cookie:
windwarrior
@windwarrior
Nov 11 2016 15:01
also, someone any clue how I can delete data attributes from an html element, both $(this).removeData('parent-id') as well as $(this).data('parent-id', '') doesnt appear to delete that parent-id data attribute
$(this).data('parent-id') does however give the correct parent-id :'(
Edgar Doiron
@Coffee4cr
Nov 11 2016 15:08
that's weird
it should remove it with removeData
Archomeda
@Archomeda
Nov 11 2016 15:25
$(this).attr('data-parent-id', '')?
defeats the purpose of using data directly though
but i've found that using that is always kind of buggy in jQuery
windwarrior
@windwarrior
Nov 11 2016 15:29
that appears to work
weirdly
fixed it another way, there is a way to make single fire event handlers in JQuery, that was exactly what I needed
Archomeda
@Archomeda
Nov 11 2016 21:20
programming with the discord.js library: https://a.pomf.cat/vvjqxw.png
(not mine :P)