janus icon indicating copy to clipboard operation
janus copied to clipboard

Maybe: dollarless janus

Open issa-tseng opened this issue 7 years ago • 2 comments

This has been obvious for a long time now, I just want it down in writing.

I didn't want to reimplement the low-level stuff but I also didn't want to be permanently bound to jQuery or Zepto. But the lengths we must go to in order to remain agnostic are intense.

On the other hand, the actual DOM operations we perform today are extremely limited yet mostly what you'd ever need. Maybe we can just implement it ourselves.

issa-tseng avatar Mar 17 '19 08:03 issa-tseng

i think this is very doable and i want to make it happen. the main issue is that intermediate libraries would still need some kind of weird env injection to obtain a document/createDocumentFragment somehow, so the biggest headache is not much improved over the current situation.

issa-tseng avatar May 15 '19 00:05 issa-tseng

we have eliminated the latter problem by swallowing the cost of env injection for intermediate libraries. now the intermediate libraries do require a dollar context in order to function. the next step would be to wean all the libraries off dollar onto native operations.

issa-tseng avatar Aug 20 '19 23:08 issa-tseng