[thelist] Proper commenting and code maintainance [was: Why does this JS code work the way it does???]

VOLKAN ÖZÇELİK volkan.ozcelik at gmail.com
Tue Dec 12 23:19:59 CST 2006

Then let us create a hybrid of both views:

// if there keyCode is not one of the numbers in validkeys
// do not allow the keystroke
// otherwise allow it:
return (strValidKeys.indexOf(String.fromCharCode(event.keyCode)) == -1);

And then compress your source with somehting like packer [1], js
crunchinator [2] or EasyPack [3]

[1] http://dean.edwards.name/packer*/*
[2] http://www.brainjar.com/js/crunch/
[3] http://www.codeproject.com/useritems/EasyPack.asp
(latest source code and binaries on

Volkan Ozcelik
+>Yep! I'm blogging! : http://www.volkanozcelik.com/cre8/blog/
+> Going solo in Turkish: http://www.volkanozcelik.com/donkisot/
+> My projects/studies/trials/errors : http://www.sarmal.com/
+> Sardalya JavaScript Library: http://www.sarmal.com/sardalya/

More information about the thelist mailing list