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.

Dynamic node config function returning array broken

#41

Does this sort of anonymous function returning an array still work?

Something about errorBackend is not defined.

My code is something like this, nested inside a SceneJS.materials():

(function() {

   var row = [];
   for (var i = 0; i < 4; i++) {
           row.push(
                   SceneJS.translate({ x: map[i].x+map[i].width/2, y: map[i].y+map[i].height/2 },
                           SceneJS.scale({x: map[i].width, y: map[i].height, z: 2.0},
                                   SceneJS.objects.cube()
                           ) // scale
                   ) // translate
           );
   }
   return row;

})() // Anon

although simpler code (below) gives the same error.

[ SceneJS.objects.cube(), SceneJS.objects.cube() ]

(Using Minefield/3.7a5pre with SceneJS 0.7.2)

Reported by lindsay.kay (at xeolabs) · April 29th, 2010 @ 11:05 PM

State: resolved
Milestone: V0.7.3

Activity

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

    May 7th, 2010 @ 09:54 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.