Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation doesn't work #59

Open
zohaad opened this issue Dec 7, 2016 · 1 comment
Open

compilation doesn't work #59

zohaad opened this issue Dec 7, 2016 · 1 comment

Comments

@zohaad
Copy link

zohaad commented Dec 7, 2016

it gives errors while running after I compile it with chrome

Uncaught TypeError: node.classList.indexOf is not a function
I changed node.classList.indexOf > -1 to node.classList.contains('ace_editor') (this fixed the error)

Uncaught TypeError: Cannot read property 'toLowerCase' of undefined

I don't know how to fix the last error

@kmatt
Copy link

kmatt commented Feb 17, 2017

I fixed by replacing lines 10-13 with:

if (node.nodeName.toLowerCase() == 'input' || node.nodeName.toLowerCase() == 'textarea' || (node.classList && node.classList.contains('ace_editor'))) { return; }

Added an undefined check to the classList for some cases.

vaguerant added a commit to vaguerant/metameater that referenced this issue Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants