If you try to make a corner in an element other than div, using IE8, the execute of the script stops.
It occurs in line 157 of the jquery.corner.js script.
I've added a try...catch block to solve it, but I do'nt know if we can do it by some "best way".
Hello!
If you try to make a corner in an element other than div, using IE8, the execute of the script stops. It occurs in line 157 of the jquery.corner.js script.
I've added a try...catch block to solve it, but I do'nt know if we can do it by some "best way".
Here what I changed: At line 157:
bot ? this.appendChild(d) : this.insertBefore(d, this.firstChild);
changed to:
try { bot ? this.appendChild(d) : this.insertBefore(d, this.firstChild); } catch(e) { /* do nothing */ }
That's all ;D Thank you!