#41 ✓resolved
lindsay.kay (at xeolabs)

Dynamic node config function returning array broken

Reported by lindsay.kay (at xeolabs) | April 29th, 2010 @ 11:05 PM | in V0.7.3

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)

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

People watching this ticket

Pages