http://jacksondunstan.com/articles/447
Albeit codewise it might be more inconvenient to pass an Array, what do you think? This might be useful when passing multiple arguments without having to rely on "function.apply()", which is also slower. Of course, duplicating 2 seperate functions (one for a single string argument and another for a passed array) can be pretty cool...though as always, any inlining/code-duplication makes your code uglier. For certain cases that relies on many heavy-duty queries, monkey-patching the getStyle(...args) argument to a single Array/Vector parameter can be done.
http://jacksondunstan.com/articles/447
Albeit codewise it might be more inconvenient to pass an Array, what do you think? This might be useful when passing multiple arguments without having to rely on "function.apply()", which is also slower. Of course, duplicating 2 seperate functions (one for a single string argument and another for a passed array) can be pretty cool...though as always, any inlining/code-duplication makes your code uglier. For certain cases that relies on many heavy-duty queries, monkey-patching the getStyle(...args) argument to a single Array/Vector parameter can be done.