temporary bugfix queries
This commit is contained in:
parent
38c305f13d
commit
4487e38c4a
4 changed files with 8 additions and 4 deletions
3
dist/xrfragment.aframe.js
vendored
3
dist/xrfragment.aframe.js
vendored
|
|
@ -1118,7 +1118,8 @@ xrf.frag.href = function(v, opts){
|
||||||
xrf
|
xrf
|
||||||
.emit('href',{click:true,mesh,xrf:v}) // let all listeners agree
|
.emit('href',{click:true,mesh,xrf:v}) // let all listeners agree
|
||||||
.then( () => {
|
.then( () => {
|
||||||
if( v.string[0] == '#' && v.string.match(/\|/) ){ // apply modifications to scene
|
if( v.string[0] == '#' && v.string.match(/(\||#q)/) ){ // apply modifications to scene
|
||||||
|
console.log("ja")
|
||||||
xrf.eval( v.string, xrf.model, xrf.XRF.PV_OVERRIDE )
|
xrf.eval( v.string, xrf.model, xrf.XRF.PV_OVERRIDE )
|
||||||
}else xrf.navigator.to(v.string) // or let's surf to HREF!
|
}else xrf.navigator.to(v.string) // or let's surf to HREF!
|
||||||
})
|
})
|
||||||
|
|
|
||||||
3
dist/xrfragment.three.js
vendored
3
dist/xrfragment.three.js
vendored
|
|
@ -1118,7 +1118,8 @@ xrf.frag.href = function(v, opts){
|
||||||
xrf
|
xrf
|
||||||
.emit('href',{click:true,mesh,xrf:v}) // let all listeners agree
|
.emit('href',{click:true,mesh,xrf:v}) // let all listeners agree
|
||||||
.then( () => {
|
.then( () => {
|
||||||
if( v.string[0] == '#' && v.string.match(/\|/) ){ // apply modifications to scene
|
if( v.string[0] == '#' && v.string.match(/(\||#q)/) ){ // apply modifications to scene
|
||||||
|
console.log("ja")
|
||||||
xrf.eval( v.string, xrf.model, xrf.XRF.PV_OVERRIDE )
|
xrf.eval( v.string, xrf.model, xrf.XRF.PV_OVERRIDE )
|
||||||
}else xrf.navigator.to(v.string) // or let's surf to HREF!
|
}else xrf.navigator.to(v.string) // or let's surf to HREF!
|
||||||
})
|
})
|
||||||
|
|
|
||||||
3
dist/xrfragment.three.module.js
vendored
3
dist/xrfragment.three.module.js
vendored
|
|
@ -1118,7 +1118,8 @@ xrf.frag.href = function(v, opts){
|
||||||
xrf
|
xrf
|
||||||
.emit('href',{click:true,mesh,xrf:v}) // let all listeners agree
|
.emit('href',{click:true,mesh,xrf:v}) // let all listeners agree
|
||||||
.then( () => {
|
.then( () => {
|
||||||
if( v.string[0] == '#' && v.string.match(/\|/) ){ // apply modifications to scene
|
if( v.string[0] == '#' && v.string.match(/(\||#q)/) ){ // apply modifications to scene
|
||||||
|
console.log("ja")
|
||||||
xrf.eval( v.string, xrf.model, xrf.XRF.PV_OVERRIDE )
|
xrf.eval( v.string, xrf.model, xrf.XRF.PV_OVERRIDE )
|
||||||
}else xrf.navigator.to(v.string) // or let's surf to HREF!
|
}else xrf.navigator.to(v.string) // or let's surf to HREF!
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,8 @@ xrf.frag.href = function(v, opts){
|
||||||
xrf
|
xrf
|
||||||
.emit('href',{click:true,mesh,xrf:v}) // let all listeners agree
|
.emit('href',{click:true,mesh,xrf:v}) // let all listeners agree
|
||||||
.then( () => {
|
.then( () => {
|
||||||
if( v.string[0] == '#' && v.string.match(/\|/) ){ // apply modifications to scene
|
if( v.string[0] == '#' && v.string.match(/(\||#q)/) ){ // apply modifications to scene *TODO* decide on queries...
|
||||||
|
console.log("ja")
|
||||||
xrf.eval( v.string, xrf.model, xrf.XRF.PV_OVERRIDE )
|
xrf.eval( v.string, xrf.model, xrf.XRF.PV_OVERRIDE )
|
||||||
}else xrf.navigator.to(v.string) // or let's surf to HREF!
|
}else xrf.navigator.to(v.string) // or let's surf to HREF!
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue