ramda / repl

The Ramda REPL
34 stars 15 forks source link

Make the REPL destroyable #32

Open craigdallimore opened 7 years ago

craigdallimore commented 7 years ago

At the moment instantiating a REPL is a one-way street - it sets up event listeners and modifies the DOM without any concern for how it can put everything back how it was.

I'd quite like to be able to do something like

// Set it up
var destroy = ramdaRepl(target, config);

// Tear it down
destroy();

This would be a part of making it a good citizen on the docs page.

For bonus points, set up should detect if the desired scripts (ramda-fantasy et all) are already present and will not load them twice.

craigdallimore commented 7 years ago

I'd assign myself but I do not appear to have that permission.

buzzdecafe commented 7 years ago

i think we can release on npm without this feature, but i agree it's a good idea

buzzdecafe commented 7 years ago

I'd assign myself but I do not appear to have that permission.

looking into that now

buzzdecafe commented 7 years ago

try it again?