"activate" : [
"( ) => {",
"\t // update files",
- "\t for(var m in this.mitems) {",
+ "\t foreach(var m in this.mitems) {",
"\t \tthis.el.detach(m);",
"\t }",
"\t this.mitems.clear();",
- "\t for(var wid in this.application.windows.keys) {",
+ "\t foreach(var wid in this.application.windows.keys) {",
"\t \tvar w = this.applications.windows.get(wid);",
"\t \t// fixme find a better way to display this.",
"\t \tvar m = new Gtk.MenuItem.with_label(w.windowstate.file.path);",
//listeners
this.el.activate.connect( ( ) => {
// update files
- for(var m in this.mitems) {
+ foreach(var m in this.mitems) {
this.el.detach(m);
}
this.mitems.clear();
- for(var wid in this.application.windows.keys) {
+ foreach(var wid in this.application.windows.keys) {
var w = this.applications.windows.get(wid);
// fixme find a better way to display this.
var m = new Gtk.MenuItem.with_label(w.windowstate.file.path);