Archive for September, 2007

All JavaScript Passengers, Attention Please
September 28, 2007

This is an example why should one follow the rule of using ‘===’ and avoid ‘==’
var a = [];
[!!a, a == false] == [true, true]
You get !!a == true and at the same time a == false, now you are confused, ain’t you?
Therefore never ever you should be using in your code ‘==’ operator.

[!!a, a [...]

HotKeys
September 16, 2007

jQuery Keyboard Shortcut Hooker Plugin is now called Hotkeys. Make sense, right? The script was tested on Linux, Windows, and MacOS, IE, Safari and Firefox.
The final result is relatively small file (121 lines of code). But do not let this fact misleading you by underestimating its value.
> See Live Demo  
Read more at Google Code [...]