Re: [cssom] Proposal for obtaining robust style information via Javascript - getStyle()

On 2/8/13, Cameron McCormack <cam@mcc.id.au> wrote:
> On 7/02/13 10:16 AM, Bjoern Hoehrmann wrote:
>> I am wondering how people would react if one was to suggest to allow
>>
>>    element.computedStyle.color
>>
>> and also
>>
>>    element.computedStyle("::before").color
>
> To me that looks a bit strange.  As Anne says we have decided that
> callable objects (that are more than just plain Functions) are something
> to avoid.
>
I missed that thread. Why is it bad to have functions that have
additional properties?
-- 
Garrett
Twitter: @xkit
personx.tumblr.com

Received on Saturday, 9 February 2013 03:24:00 UTC