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.

Support "../" in relative SceneJS.Instance name config

#92

"../" prefixes in Instance node name configs allows upward traversal through namespaces set by Name nodes to locate Symbols defined at higher levels.

   SceneJS.name({name: "foo"},

      SceneJS.symbol({
                 name: "teapot"
             }
,
           SceneJS.objects.teapot()
      ),

      //----------------------------------------------------------
      // Instance the teapot Symbol from inside a namespace
      // within that in which the Symbol is defined.
      // See how the relative symbol reference starts with a "../"
      // to back up one level into the Symbol's namespace.
      //----------------------------------------------------------

      SceneJS.name({name: "bar" },

          SceneJS.instance({name: "../teapot" })))   // Resolves to "/foo/teapot" from within "/foo/bar"

Reported by lindsay.kay (at xeolabs) · May 25th, 2010 @ 08:28 AM

State: resolved
Milestone: V0.7.6

Activity

No comments yet.

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.