Thread: PRS-500 Hack Builder!
View Single Post
Old 09-01-2007, 11:27 PM   #48
mdhuang
Bookworm
mdhuang doesn't littermdhuang doesn't litter
 
mdhuang's Avatar
 
Posts: 113
Karma: 154
Join Date: Aug 2007
Device: Sony CLIE NX80V, PRS-500
There is indeed a bug in the Direct Page Contril.xml:

<function id="doDigit" params="part"><![CDATA[

if (a <= 0) {
digits = '';
}

var keyCode = part.key.charCodeAt(0);

if (keyCode >= 0x30) {
a = keyCode - 0x30;
this.stackP();
}
]]></function>

This conditional code resets digits to empty string when it encounters a "0", I guess that its purpose is to remove leading "0"s, but it does have side effect.

if (a <= 0) {
digits = '';
}
mdhuang is offline   Reply With Quote