svgdotjs / svg.select.js

An extension of svg.js which allows to select an element

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught TypeError: el.parent is not a function

mamaluya opened this issue · comments

var draw = SVG('drawing').size(500, 500);
var rect = draw.rect(100, 100);
rect.selectize();

nearly, I run the demo source on github, but met an error like below:
Uncaught TypeError: el.parent is not a function. where is my fault?

The code works as it should