]> source.dussan.org Git - svg.js.git/commit
Update element.js 447/head
authorMilovan Zogovic <milovan.zogovic@gmail.com>
Fri, 22 Jan 2016 13:32:51 +0000 (14:32 +0100)
committerMilovan Zogovic <milovan.zogovic@gmail.com>
Fri, 22 Jan 2016 13:32:51 +0000 (14:32 +0100)
commit2c1bf5a4095df2d15f36ea5a3341bf9a9a133217
tree5b05b641a43afbb6e8b2c9d82be5ab2a6dbcc2d9
parentd17bab6bcccc8319b8b4c96db0def8926e93152d
Update element.js

I've encountered situation where SVG.adopt (line 176) returns null, which leads to `Uncaught TypeError: Cannot read property 'node' of null`. Checking whether parent exists fixes it.
src/element.js