Check for app_callback before trying to call it

This commit is contained in:
Nathan Gray 2013-11-07 23:21:14 +00:00
parent 969155e150
commit ba9782138c

View File

@ -301,7 +301,7 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback)
{ {
_callback.call(window,this); _callback.call(window,this);
} }
if(_callback != app_callback) if(app_callback && _callback != app_callback)
{ {
app_callback.call(window,this); app_callback.call(window,this);
} }