When I invoke this.AssetLoadedFunc
within the function LoadAssets(callback, user_data)
LoadAssets(callback, user_data) {
this.glg.LoadWidgetFromURL("assets/Js/scrollbar_h.g", null,
this.AssetLoaded,
{
name: "scrollbar_h", callback: callback,
user_data: user_data
});
}
AssetLoaded(glg_object, data) {
if (data.name == "scrollbar_h") {
if (glg_object != null)
glg_object.SetResourceObject("$config/GlgHScrollbar", glg_object);
}
else
console.error("Unexpected asset name");
if (!this.AssetLoaded.num_loaded )
this.AssetLoaded.num_loaded = 1;
else
++this.AssetLoaded.num_loaded;
}
ERROR TypeError: Cannot read property
ERROR TypeError: Cannot read property 'AssetLoaded' of null
at AssetLoadedFunc (app.component.ts:540)