this.saveConfig();
}
- },
+ },
projects : [],
saveConfig : function()
{
- Roo.each(this.projects, function(p) {
+ var _this = this;
+ this.projects.forEach( function(p) {
if (!p.fn) {
// make the filename..
}
- var file = Gio.file_new_for_path(this.dirname + '/' + p.fn + '.json');
+ var file = Gio.file_new_for_path(_this.dirname + '/' + p.fn + '.json');
var stream = file.replace(null,false,0);
var s = p.toJSON();
stream.close();
- }, this);
+ });
Seed.print(JSON.stringify(proj));
var found = false;
- Roo.each(this.projects , function(p) {
+ this.projects.forEach( function(p) {
if (proj == p) {
found = true;
return true;
},
getByFn : function (fn) {
var ret = false;
- Roo.each(this.projects, function(p) {
+ this.projects.forEach(function(p) {
if (p.fn == fn) {
ret = p;
return true;