mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 16:58:33 +08:00
hasChildren returns Boolean
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
* determine if node has children
|
||||
* @method
|
||||
* @memberof Kinetic.Container.prototype
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
hasChildren: function() {
|
||||
return this.getChildren().length > 0;
|
||||
|
||||
Reference in New Issue
Block a user