Subversion Repositories HomeAutomation

Rev

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

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