P
Piotr K
Hi!
Ok, so I have small problem and can't find solution to it.. Is there
any way to check if an object has defined setter? In other words - if
it's value can be changed?
Small example:
var el = document.getElementById('element');
el.style = "smth";
Browser will throw exception, I can use try..catch but is there way to
just write a function like hasSetter() ?
Thanks fo help!
Ok, so I have small problem and can't find solution to it.. Is there
any way to check if an object has defined setter? In other words - if
it's value can be changed?
Small example:
var el = document.getElementById('element');
el.style = "smth";
Browser will throw exception, I can use try..catch but is there way to
just write a function like hasSetter() ?
Thanks fo help!