Subversion Repositories HomeAutomation

Rev

Rev 977 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 977 Rev 999
Line 16... Line 16...
16
                //log("Could not load " + name + ".js\n");
16
                //log("Could not load " + name + ".js\n");
17
                return null;
17
                return null;
18
            }
18
            }
19
        }
19
        }
20
       
20
       
21
        ServiceManager.Services[fullId] = eval("(new " + name + "('" + name + "', " + id + "))");///FIXME: Can we do this without eval??
21
        ServiceManager.Services[fullId] = eval("(new " + name + "('" + type + "', '" + name + "', " + id + "))");///FIXME: Can we do this without eval??
22
    }
22
    }
23
   
23
   
24
    return ServiceManager.Services[fullId];
24
    return ServiceManager.Services[fullId];
25
}
25
}
26
 
26