I have seen statements like the ones below in many D3 examples. However, I cannot understand what this means. In particular, I do not know what this variable self refers to. Also, is this some kind of D3 dummy / agreement or is it just a special thing? Thank you very much.
d3.select(self.frameElement).style("height", height + "px");
BTW, here is an example where I copied the above statement.
Jbt
source share