augmentmy-world / arStudio

A innovative Web editor for Augmented Reality
https://webarstudio.tripod-digital.co.nz
MIT License
54 stars 34 forks source link

Issue with jquery after closing the player #21

Closed kalwalt closed 4 years ago

kalwalt commented 4 years ago

This is the error:

jquery.min.js:2 Uncaught Error: Syntax error, unrecognized expression: @ENC
    at Function.se.error (jquery.min.js:2)
    at se.tokenize (jquery.min.js:2)
    at se.select (jquery.min.js:2)
    at Function.se [as find] (jquery.min.js:2)
    at k.fn.init.find (jquery.min.js:2)
    at new k.fn.init (jquery.min.js:2)
    at k (jquery.min.js:2)
    at ArControllerComponent.stopAR (arcontroller.compone…js?version=0.64:321)
    at Object.trigger (litegl.js?version=0.64:10617)
    at Scene.finish (litescene.js?version=0.64:14467)
kalwalt commented 4 years ago

Maybe it is caused by a change in jquery syntax. I need to verify this. i can test with an older jquery version.

kalwalt commented 4 years ago

Maybe it is caused by a change in jquery syntax. I need to verify this. i can test with an older jquery version.

no it not depends by jquery version. i have just tested with the old one.

kalwalt commented 4 years ago

At line 176 of arcontroller.component.js it should be:

+ var selectedCanvas = this.canvas[0];
- var selectedCanvas = $(this.canvas[0]);

I will fix tomorrow!

kalwalt commented 4 years ago

The issue maybe was caused because the this.canvas=$('canvas'); was part of the arcomponent removing it, and changed the ref. code, solved the issue.

kalwalt commented 4 years ago

Solved with #19