Which is just horrible!Ewww. Agreed.
It seems to me that the purpose of this is to dispatch the setting of attributes. Perhaps setAttrDispatcher( obj, attr, value ). Still ick. Longer (of course, that is hard not to be), and still confusing (where does useSVG come from, for example).
update: small bit of cleanup and clarification
--MidLifeXis
In reply to Re^3: Refactoring technique?
by MidLifeXis
in thread Refactoring technique?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |