Skip to content

sim.js: update()-function defined twice #6

@Dahie

Description

@Dahie

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions