#43 ✓resolved
Royce Townsend

SceneJS incorrect determines if config is fixed or not

Reported by Royce Townsend | May 2nd, 2010 @ 08:05 AM | in V0.7.3

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;
    }
}

}

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

SceneJS provides easy access to WebGL through a simple and declarative JavaScript API. The SceneJS API is functional, which enables its scene definitions to be really compact and expressive, while hooking into other JavaScript code just that little bit more smoothly.

Shared Ticket Bins

Pages