문제

There was another question with an answer saying that you can use event.down.x to get the x-coordinate of a tap event. It also said that this was not well documented in the Palm Mojo SDK. My question is how can I find the properties that I can use for any given Mojo object?

도움이 되었습니까?

해결책 2

I ended up finding the Mojo debugger and it allows you to print the properties of objects via the command line.

다른 팁

The easiest way is to create the JSON for the object with object.toJSON(yourObjectHere). Then you can print it to the log file, screen or where ever you want it.

Maybe there are better ways like for (var i in yourObjectHere), but this is my preferred quick and dirty way.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top