Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

SceneJS incorrect determines if config is fixed or not

#43

Other javascript libraries that modify the object prototype cause SceneJS to think {example:"value"} contains functions and therefore SceneJS._utils.getNodeConfig() sets results.fixed to false and even a simple scene throws 'Dynamic configuration of SceneJS.scene node is not supported'

Solution:

SceneJS._utils.getNodeConfig() [line:209-ish] change:

for (var key in arg) {

if (result.fixed && arg[key] instanceof Function) {
    result.fixed = false;
}

}

to:

for (var key in arg) {

if (arg.hasOwnProperty(key)) {
    if (result.fixed && arg[key] instanceof Function) {
        result.fixed = false;
    }
}

}

Reported by Royce Townsend · May 2nd, 2010 @ 08:05 AM

State: resolved
Milestone: V0.7.3

Activity

  1. lindsay.kay (at xeolabs)
    lindsay.kay (at xeolabs)
    • Milestone set to V0.7.3

    Jut added this fix to V0.7.3, thanks Royce.

    May 2nd, 2010 @ 08:18 AM

  2. lindsay.kay (at xeolabs)
    lindsay.kay (at xeolabs)
    • State changed from new to resolved

    May 5th, 2010 @ 03:58 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.