canvas/api/element.nas add getType
This commit is contained in:
parent
e16bf79e91
commit
551f4dab62
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue