Add ‘del’ method to SVGCanvas
From Henning Stahlke
This commit is contained in:
parent
33ac2eff46
commit
398d9cb486
1 changed files with 5 additions and 1 deletions
|
@ -20,7 +20,6 @@
|
|||
#-------------------------------------------------------------------------------
|
||||
|
||||
var SVGCanvas = {
|
||||
|
||||
colors: canvas.colors,
|
||||
|
||||
# constructor
|
||||
|
@ -52,6 +51,11 @@ var SVGCanvas = {
|
|||
return obj;
|
||||
},
|
||||
|
||||
del: func() {
|
||||
if (me.window != nil) me.window.del();
|
||||
me._canvas.del();
|
||||
return nil;
|
||||
},
|
||||
# loadSVG - loads SVG file and create canvas.element objects for given IDs
|
||||
# file: filename to load
|
||||
# svg_keys: vector of id strings
|
||||
|
|
Loading…
Add table
Reference in a new issue