vmware-archive / scripted

The Scripted code editor
Eclipse Public License 1.0
1.56k stars 166 forks source link

exec afterSave only triggeres once in FireFox #250

Closed kdvolder closed 11 years ago

kdvolder commented 11 years ago

Create a project with a 'main.js' file and some code in it.

Create a .scripted file with an exec afterSave block like so

exec: {
    afterSave: {
        'main.js' : 'node main.js'
    }
}

The first time main.js is saved it gets executed. Edit main.js a bit and save again. The afterSave is not triggered. It works again (one time only) if the page is reloaded.

This bug occurs for me on Linux/Firefox, but on Linux/Chrome.

This seems to be a regression because it used to work on Firefox as well as Chrome.

kdvolder commented 11 years ago

Problem seems to be the code that clear the old contents from exec-console. I use 'remove' method on dom nodes which doesn't seem to exist in FF.