agentIDs and raycasting like mad!
This commit is contained in:
@@ -39,7 +39,7 @@ app.helpers.activeAttributes = {
|
||||
* setupRefs is re-entrant: it can be called again after refreshing part of the view
|
||||
* @param {eicui-components []} components : the view's components (usually result of ui.eicfy(this.el) )
|
||||
*/
|
||||
setupRefs(components){
|
||||
setupRefs(components = []){
|
||||
if(!this.components) this.components = {}
|
||||
for(let component of components.filter(component => component.el.hasAttribute('data-ref'))) {
|
||||
this.components[component.el.dataset.ref] = component
|
||||
@@ -61,6 +61,7 @@ app.helpers.activeAttributes = {
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* output (singular) : this.output('mydiv', '<p>Some markup</p>') places markup in a data-output node
|
||||
* @param {*} name
|
||||
|
||||
@@ -110,4 +110,10 @@ app.helpers.helpers3D = {
|
||||
return pivot
|
||||
},
|
||||
|
||||
getNamedParent(obj) {
|
||||
while (obj && !obj.name) {
|
||||
obj = obj.parent
|
||||
}
|
||||
return obj
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user