A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
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…