From 551f4dab6290769d296696c61e4ec1d2c5af5363 Mon Sep 17 00:00:00 2001 From: Henning Stahlke Date: Wed, 29 Apr 2020 17:30:44 +0200 Subject: [PATCH] canvas/api/element.nas add getType --- Nasal/canvas/api/element.nas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Nasal/canvas/api/element.nas b/Nasal/canvas/api/element.nas index 00a2d581e..0a4d1d0c1 100644 --- a/Nasal/canvas/api/element.nas +++ b/Nasal/canvas/api/element.nas @@ -20,6 +20,10 @@ var Element = { return obj; }, + getType: func () { + return me._node.getName(); + }, + # Get parent group/element getParent: func() { var parent_ghost = me._getParent();