mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
Api: Avoid infinite loop if requested file does not actually provide the class
This commit is contained in:
parent
026b088dd0
commit
b4dd62de69
@ -401,7 +401,10 @@ egwFnct.prototype.setValue = function(_value)
|
|||||||
// cache for a day, better then no invalidation
|
// cache for a day, better then no invalidation
|
||||||
egw.includeJS("/"+parts[1]+"/js/app.js?"+((new Date()).valueOf()/86400|0).toString(), function ()
|
egw.includeJS("/"+parts[1]+"/js/app.js?"+((new Date()).valueOf()/86400|0).toString(), function ()
|
||||||
{
|
{
|
||||||
resolve(this.setValue(_value));
|
if(typeof app.classes[parts[i]] !== "undefined")
|
||||||
|
{
|
||||||
|
resolve(this.setValue(_value));
|
||||||
|
}
|
||||||
}.bind(this), self, egw.webserverUrl);
|
}.bind(this), self, egw.webserverUrl);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user