hasChildren returns Boolean

This commit is contained in:
Лаврёнов Антон
2014-01-13 01:07:57 +08:00
parent 90dd146c47
commit 1db2a43657

View File

@@ -16,6 +16,7 @@
* determine if node has children
* @method
* @memberof Kinetic.Container.prototype
* @returns {Boolean}
*/
hasChildren: function() {
return this.getChildren().length > 0;