repl icon indicating copy to clipboard operation
repl copied to clipboard

Make the REPL destroyable

Open craigdallimore opened this issue 8 years ago • 4 comments

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 avatar Oct 20 '16 19:10 craigdallimore

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

craigdallimore avatar Oct 20 '16 19:10 craigdallimore

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

buzzdecafe avatar Oct 20 '16 19:10 buzzdecafe

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

looking into that now

buzzdecafe avatar Oct 20 '16 19:10 buzzdecafe

try it again?

buzzdecafe avatar Oct 20 '16 19:10 buzzdecafe