I'm trying to add passive event listener for Kinvara template and although I followed Google's directions I am still getting an error.
Website -- ocklawahariver.com
It's in --- file "/js/slideout.js" in template "j51_kinvara".
Here's the current line of code, line 205:
this.panel.addEventListener(touch.start, this._resetTouchFn);
The error I get: Does not use passive listeners
Here's what I changed it to
this.panel.addEventListener(touch.start, this._resetTouchFn {passive: true});
The error saying there is not a passive listener goes away and is replaced with: Uncaught SyntaxError: missing ) after argument list
Any ideas how I can fix this?
I'm also getting one other error:
jquery.min.js:2 Uncaught ReferenceError: Slideout is not defined
at HTMLDocument.<anonymous> ((index):37)
at e (jquery.min.js:2)
at t (jquery.min.js:2)
By the way --- I'm using jquery easy as you recommended from another post.