[Bug 16524] ask about reasons to use getter/setter for lineDash

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16524

Ian 'Hixie' Hickson <ian@hixie.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #2 from Ian 'Hixie' Hickson <ian@hixie.ch> 2012-03-28 21:57:21 UTC ---
Basically, the reason is that there's no way to make it work with an attribute:

context.lineDash = [1,2,3];
context.lineDash[0] = 2; // what should happen?

var a = [1,2,3];
context.lineDash = a;
a[0] = 2; // what should happen to context.lineDash?

If you look at the feedback Mozilla sent the WHATWG list you'll see they had
the same concern with their implementation.


(I'm marking the bug resolved since this was just a question, not feedback.
Feel free to e-mail the WHATWG list or me directly or indeed to chat on the
#whatwg IRC channel on Freenode if you have any questions.)

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 28 March 2012 21:57:24 UTC