'Cannot read property 'destroy' of undefined'
Code: Select all
FORGE.RenderManager.prototype.destroy = function()
{
...
if (this._onViewReady !== null)
{
this._onViewReady.destroy();
this._onViewReady = null;
}
}
Code: Select all
FORGE.RenderManager.prototype.destroy = function()
{
...
if (this._onViewReady !== null)
{
this._onViewReady.destroy();
this._onViewReady = null;
}
}
Code: Select all
var viewer = new FORGE.Viewer("container", config);
viewer.destroy();
Code: Select all
forge.min.js:18 Uncaught TypeError: Cannot read property 'stop' of null
at r.g.destroy (forge.min.js:18)
at <anonymous>:1:9
What am I doing wrong?
Users browsing this forum: No registered users and 2 guests