Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

settings undefined

ANSWERED

I am trying to add settings to my clock face for color etc, so I copied all of the SDK Moment clock's settings code into my project.  However, I get an error when I try to set a color to anything:

 

Unhandled exception: TypeError: Cannot set property 'colorAll' of undefined

? at app/simple/device-settings.js:29,3

 

The code where the error is occuring is:

 

// Received message containing settings data
messaging.peerSocket.addEventListener("message", function(evt) {
settings[evt.data.key] = evt.data.value;
onsettingschange(settings);
})

 

Is there a simple solution to this?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Hi @khowder -  please be aware that sometimes the error is signaled on the last working instructions, so look further down as it may be referring to an error on a different item perhaps.

Author | ch, passion for improvement.

View best answer in original post

Best Answer
2 REPLIES 2

Hi @khowder -  please be aware that sometimes the error is signaled on the last working instructions, so look further down as it may be referring to an error on a different item perhaps.

Author | ch, passion for improvement.

Best Answer

It did turn out to be something else in the code. Thanks again Guy_

Best Answer