Fix slowdown on editor switch in "scriptEditor" component.

Closes #56.