2 ms·
from an architecture standpoint, the solution using events is actually cleaner: Instead of having a flag that toggles some events default action, you have overr
by pilif 17y ago
from an architecture standpoint, the solution using events is actually cleaner: Instead of having a flag that toggles some events default action, you have override the event default action where you need it changed.
If you need the attribute (or even a class="draggable" to achieve your goal without changing the standard), you can use libraries like jQuery.
What I'm saying is:
* I disagree with the author of the articles assumption that the default event action is wrongly set. If it was the other way around, selection of page elements would not be possible.
* The events is what we have in the standard. I would probably prefer the flag aswell, but from a architecture standpoint, using the events is probably much easier to implement.
* If I want to have that attribute, I can easily add it to my sites script code using one or two lines of jQuery-code.