3 ms·
I wouldn't use it, because it doesn't use the main hotkeys for user interaction on the alert box (enter, space) or the confirm box (enter, space, escape). I al
by chris_engel 15y ago
I wouldn't use it, because it doesn't use the main hotkeys for user interaction on the alert box (enter, space) or the confirm box (enter, space, escape).
I also would have liked it better, if the default functions of alert and confirm would have been overwritten, instead of recreated into an object.
Overwriting the existent functions would have been made it a snap to integrate smoke.js into existing projects.
- frankil 15y agoTo my knowledge, you can't overwrite the existent confirm function because you can't pause the running of JS like the standard function does.