deprecated getNodeType(), added className property to label, and added lots of Node doc examples

This commit is contained in:
Eric Rowell
2013-05-17 11:46:06 -07:00
parent d6a836ba5c
commit 47364c63cd
4 changed files with 88 additions and 53 deletions

View File

@@ -7,6 +7,7 @@
RIGHT = 'right',
DOWN = 'down',
LEFT = 'left',
LABEL = 'Label',
// cached variables
attrChangeListLen = ATTR_CHANGE_LIST.length;
@@ -43,6 +44,7 @@
this.innerGroup = new Kinetic.Group();
this.createAttrs();
this.className = LABEL;
Kinetic.Group.call(this, config);
text = new Kinetic.Text(config.text);
this.setText(text);