- From: Cameron McCormack <cam@mcc.id.au>
- Date: Fri, 24 Aug 2012 15:22:58 +1000
- To: Boris Zbarsky <bzbarsky@MIT.EDU>
- CC: Glenn Adams <glenn@skynav.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style@w3.org
Boris Zbarsky: > Obviously you could also log and then forward to the original getter or > setter and so forth. People do this all the time right now with methods > in the web platform. Granted, for methods there's a bit less > boilerplate needed. You could define it so that the getters/setters call getProperty/setProperty methods on the object, so authors could then intercept property accesses there. (Same for variables, if we wanted to allow interception of variables.) Not sure whether that's a good idea, performance-wise though.
Received on Friday, 24 August 2012 05:23:42 UTC