diff --git a/dist/kinetic-core.js b/dist/kinetic-core.js index b57f32e0..2c666384 100644 --- a/dist/kinetic-core.js +++ b/dist/kinetic-core.js @@ -907,8 +907,8 @@ Kinetic.Container.prototype = { } }, /** - * use for selectors. select nodes by id with # and by name - * with . + * return an array of nodes that match the selector. Use '#' for id selections + * and '.' for name selections * ex: * var node = stage.get('#foo'); // selects node with id foo * var nodes = layer.get('.bar'); // selects nodes with name bar inside layer diff --git a/src/Container.js b/src/Container.js index 31b416c9..810b5385 100644 --- a/src/Container.js +++ b/src/Container.js @@ -54,8 +54,8 @@ Kinetic.Container.prototype = { } }, /** - * use for selectors. select nodes by id with # and by name - * with . + * return an array of nodes that match the selector. Use '#' for id selections + * and '.' for name selections * ex: * var node = stage.get('#foo'); // selects node with id foo * var nodes = layer.get('.bar'); // selects nodes with name bar inside layer