<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: __defineSetter__ in Mozilla</title>
	<atom:link href="http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla</link>
	<description>scratched tallies on the prison wall</description>
	<pubDate>Tue, 02 Dec 2008 02:05:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Hallvord R. M. Steen</title>
		<link>http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla#comment-105483</link>
		<dc:creator>Hallvord R. M. Steen</dc:creator>
		<pubDate>Sun, 27 Jan 2008 06:20:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla#comment-105483</guid>
		<description>The problem with looking up the element that owns the style property is basically a shortcoming of JavaScript/ECMAScript, I've been there many times and still don't know how to do it. Would be nice with a generic obj.__parent__ or something. (The problem is much worse with getters and setters BTW, in other contexts you are much likely to have the information in a variable anyway.)

The only real solution I know so far is to use closures where you define the setters/getters but this naturally sucks because you can not use prototype.__define[GS]etter__ to that extent. Maybe ES4 comes to the rescue?</description>
		<content:encoded><![CDATA[<p>The problem with looking up the element that owns the style property is basically a shortcoming of JavaScript/ECMAScript, I&#8217;ve been there many times and still don&#8217;t know how to do it. Would be nice with a generic obj.__parent__ or something. (The problem is much worse with getters and setters BTW, in other contexts you are much likely to have the information in a variable anyway.)</p>
<p>The only real solution I know so far is to use closures where you define the setters/getters but this naturally sucks because you can not use prototype.__define[GS]etter__ to that extent. Maybe ES4 comes to the rescue?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: as days pass by &#187; Off to Austin</title>
		<link>http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla#comment-4034</link>
		<dc:creator>as days pass by &#187; Off to Austin</dc:creator>
		<pubDate>Wed, 19 Oct 2005 01:08:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla#comment-4034</guid>
		<description>[...] There are times when this weblog is silent because I&#8217;m not up to much. There are also times when it&#8217;s silent because I&#8217;m up to too much and don&#8217;t have time to post. This most recent silence has been the latter sort, although a couple of nuggets (like the thing about mousewheel scrolling and the thing about defineSetters came out of my current work. Still not ready to reveal it, but I do have one other thing to say: I&#8217;m going to SxSW 2006! Yes indeed. I shall be there in Austin. I got well sick last year of everyone going on about it, and Simon ragged on me for thinking about not going, pointing out that it is great and fantastic and now he works at Yahoo, and I examined his argument and found it compelling. We&#8217;ll ignore, for the moment, all the 64oz steaks for $0.99 that you get in Texas, although I shall not be ignoring them when I get there, no sirree. Bring me another. And another plate of chips, too. Oh yes. Anyway, I&#8217;m really looking forward to it. It&#8217;s going to be cool. I&#8217;m also speaking at a couple of upcoming conferences; details when they go public. Blimey &#8212; jetting off to other countries, speaking at conferences&#8230;I&#8217;m turning into Jono. Heh. [...]</description>
		<content:encoded><![CDATA[<p>[...] There are times when this weblog is silent because I&#8217;m not up to much. There are also times when it&#8217;s silent because I&#8217;m up to too much and don&#8217;t have time to post. This most recent silence has been the latter sort, although a couple of nuggets (like the thing about mousewheel scrolling and the thing about defineSetters came out of my current work. Still not ready to reveal it, but I do have one other thing to say: I&#8217;m going to SxSW 2006! Yes indeed. I shall be there in Austin. I got well sick last year of everyone going on about it, and Simon ragged on me for thinking about not going, pointing out that it is great and fantastic and now he works at Yahoo, and I examined his argument and found it compelling. We&#8217;ll ignore, for the moment, all the 64oz steaks for $0.99 that you get in Texas, although I shall not be ignoring them when I get there, no sirree. Bring me another. And another plate of chips, too. Oh yes. Anyway, I&#8217;m really looking forward to it. It&#8217;s going to be cool. I&#8217;m also speaking at a couple of upcoming conferences; details when they go public. Blimey &#8212; jetting off to other countries, speaking at conferences&#8230;I&#8217;m turning into Jono. Heh. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sil</title>
		<link>http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla#comment-3869</link>
		<dc:creator>sil</dc:creator>
		<pubDate>Wed, 28 Sep 2005 17:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla#comment-3869</guid>
		<description>OCB: for a mighty cool project, which I shall be revealing as soon as I get it working :)</description>
		<content:encoded><![CDATA[<p>OCB: for a mighty cool project, which I shall be revealing as soon as I get it working :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OCB</title>
		<link>http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla#comment-3864</link>
		<dc:creator>OCB</dc:creator>
		<pubDate>Wed, 28 Sep 2005 11:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla#comment-3864</guid>
		<description>One question - WHY ?

Why on earth would you ever want to do this - bored maybe ? Too much time on your hands ?

:-)</description>
		<content:encoded><![CDATA[<p>One question - WHY ?</p>
<p>Why on earth would you ever want to do this - bored maybe ? Too much time on your hands ?</p>
<p>:-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sil</title>
		<link>http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla#comment-3863</link>
		<dc:creator>sil</dc:creator>
		<pubDate>Wed, 28 Sep 2005 10:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla#comment-3863</guid>
		<description>What I can do is, in cssdisplay, walk through all the elements on the page and say 

if (thiselement.style === this) { // do something with thiselement }

which works, and should be fine as long as the page isn't *too* massive, which it won't be for this project.</description>
		<content:encoded><![CDATA[<p>What I can do is, in cssdisplay, walk through all the elements on the page and say </p>
<p>if (thiselement.style === this) { // do something with thiselement }</p>
<p>which works, and should be fine as long as the page isn&#8217;t *too* massive, which it won&#8217;t be for this project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sil</title>
		<link>http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla#comment-3862</link>
		<dc:creator>sil</dc:creator>
		<pubDate>Wed, 28 Sep 2005 08:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla#comment-3862</guid>
		<description>Hm. New problem, then; what I actually want to do, in cssdisplay(), is get the computed style of the element. However, I don't *have* the element; "this" in cssdisplay() is the style declaration. Any suggestions for how I can get the element, or how I can pre-prep all elements (including dynamically created ones) so that I can get a reference to an element from its CSSStylrDeclaration object?</description>
		<content:encoded><![CDATA[<p>Hm. New problem, then; what I actually want to do, in cssdisplay(), is get the computed style of the element. However, I don&#8217;t *have* the element; &#8220;this&#8221; in cssdisplay() is the style declaration. Any suggestions for how I can get the element, or how I can pre-prep all elements (including dynamically created ones) so that I can get a reference to an element from its CSSStylrDeclaration object?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sil</title>
		<link>http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla#comment-3861</link>
		<dc:creator>sil</dc:creator>
		<pubDate>Wed, 28 Sep 2005 08:25:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla#comment-3861</guid>
		<description>Dylan: nice one! That works. DIdn't even *know* about setProperty().</description>
		<content:encoded><![CDATA[<p>Dylan: nice one! That works. DIdn&#8217;t even *know* about setProperty().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dylan Moreland</title>
		<link>http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla#comment-3860</link>
		<dc:creator>Dylan Moreland</dc:creator>
		<pubDate>Wed, 28 Sep 2005 02:06:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2005/09/28/__definesetter__-in-mozilla#comment-3860</guid>
		<description>What about calling this.setProperty("display", newstyle, "")?</description>
		<content:encoded><![CDATA[<p>What about calling this.setProperty(&#8221;display&#8221;, newstyle, &#8220;&#8221;)?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
