-
Notifications
You must be signed in to change notification settings - Fork 296
sim.js: update()-function defined twice #6
Copy link
Copy link
Open
Description
In the sim.js lib at line 462-465 you have this function definition for Sim.Object
Sim.Object.prototype.update = function()
{
this.updateChildren();
}
Later in line 505 this function definition starts defining Sim.Object.prototype.update a second time
Sim.Object.prototype.update = function()
{
var i, len;
len = this.children.length;
for (i = 0; i < len; i++)
{
this.children[i].update();
}
}
I guess the first definition gets overwritten and so the first definition simple gets ignored and so no errors derive. updateChildren() is nowhere defined.
This could be cleaned up in a later revision.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels