Pregunta

In Chrome's developer tools, is it possible to delete a function and re-write it?

I have deleted it from the scripts tab and pasted a revised function into the console. But it appears the older function has not been removed from the DOM.

¿Fue útil?

Solución

After you have deleted your function from the Scripts panel, make sure you hit Ctrl-S to actually commit your change. You can also paste the new version of the function in place of the old one in the same script before committing.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top