I have developed some custom methods for CSSStyleDeclaration and implement them like this:
A_OBJECT.style.method() ;
The code structure is quite simple:
CSSStyleDeclaration.prototype.method = function () {
x = this.left;
..... etc
}
Here's my query: How can I access the parent element of 'this', which in this case is 'A_OBJECT'? Is there a way to achieve this? Thank you.