deprecated the get() method and added find(). the change is backwards compatible

This commit is contained in:
ericdrowell
2013-09-20 14:08:51 -07:00
parent a3b18b4207
commit 85db781630
6 changed files with 193 additions and 161 deletions

View File

@@ -74,7 +74,7 @@
* @memberof Kinetic.Label.prototype
*/
getText: function() {
return this.get('Text')[0];
return this.find('Text')[0];
},
/**
* get Tag shape for the label. You need to access the Tag shape in order to update
@@ -84,7 +84,7 @@
* @memberof Kinetic.Label.prototype
*/
getTag: function() {
return this.get('Tag')[0];
return this.find('Tag')[0];
},
_addListeners: function(text) {
var that = this,