This forum was moved to another machine and updated to a recent version. If you are unable to login please delete your browser cookies and cache and restart your browser.A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Solved Connecting Modules to Each Other
-
@tonkxy I would put a stop everywhere u set it.
make sure the this. pointer is pointing to the same place set vs use
-
@sdetweil when you say stop you mean in my debug to see where im losing the value?
-
@tonkxy correct
-
@sdetweil Great advice.
I stepped through and you were right on two things. When it starts, it defaults with the else case, because it hasn’t fetched the type yet. Once it does fetch the type I was resetting it in the myJob() function causing it to be undefined again.
I appreciate the break down on this. JS is definitely giving me a run for my money on learning it.
-
@tonkxy glad you are making progress.
not a JS problem. any language would have the same problem…