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

Uncaught TypeError: Cannot set property 'findAndReplaceDOMText' of undefined #44

Open
MALIK-0 opened this issue May 13, 2016 · 4 comments

Comments

@MALIK-0
Copy link

MALIK-0 commented May 13, 2016

Hi there,

I want to use your script (tried via npm, and the bower repo) for my application but if I include it I get the following error:

Uncaught TypeError: Cannot set property 'findAndReplaceDOMText' of undefined

Which is caused by this line (22) of code:

root.findAndReplaceDOMText = factory();

In my case it looks like root is not defined, cause if I change the code to

window.findAndReplaceDOMText = factory();

the error dissapears and the script works. Do you have any idea what is causing this? Couldn't find anyone facing a similiar issue via Google.

Thanks for your help.

@padolsey
Copy link
Owner

Hi Tobias. What environment are you trying to run it in? (What browser?)

@MALIK-0
Copy link
Author

MALIK-0 commented May 14, 2016

Hi James, running it on a localhost (xammp) on a Windows os in Google
Chrome. Tried it also in Firefox. Isn't working too, but throws no error.

As mentioned if I replace root with window it works without errors.

Am Samstag, 14. Mai 2016 schrieb James Padolsey :

Hi Tobias. What environment are you trying to run it in? (What browser?)


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#44 (comment)

Von Gmail Mobile gesendet

@MALIK-0
Copy link
Author

MALIK-0 commented May 24, 2016

@padolsey do you have any idea what this could be?

@MALIK-0
Copy link
Author

MALIK-0 commented Jun 21, 2016

Hey @padolsey do you have anything new on this?

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