You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/gameobjects/container/Container.js
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -347,7 +347,7 @@ var Container = new Class({
347
347
*
348
348
* @param {boolean} [value=true] - The exclusive state of this Container.
349
349
*
350
-
* @return {Phaser.GameObjects.Container} This Container.
350
+
* @return {this} This Container.
351
351
*/
352
352
setExclusive: function(value)
353
353
{
@@ -508,7 +508,7 @@ var Container = new Class({
508
508
*
509
509
* @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]} child - The Game Object, or array of Game Objects, to add to the Container.
510
510
*
511
-
* @return {Phaser.GameObjects.Container} This Container instance.
511
+
* @return {this} This Container instance.
512
512
*/
513
513
add: function(child)
514
514
{
@@ -530,7 +530,7 @@ var Container = new Class({
530
530
* @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]} child - The Game Object, or array of Game Objects, to add to the Container.
531
531
* @param {integer} [index=0] - The position to insert the Game Object/s at.
532
532
*
533
-
* @return {Phaser.GameObjects.Container} This Container instance.
533
+
* @return {this} This Container instance.
534
534
*/
535
535
addAt: function(child,index)
536
536
{
@@ -579,7 +579,7 @@ var Container = new Class({
579
579
* @param {string} property - The property to lexically sort by.
580
580
* @param {function} [handler] - Provide your own custom handler function. Will receive 2 children which it should compare and return a boolean.
581
581
*
582
-
* @return {Phaser.GameObjects.Container} This Container instance.
582
+
* @return {this} This Container instance.
583
583
*/
584
584
sort: function(property,handler)
585
585
{
@@ -721,7 +721,7 @@ var Container = new Class({
721
721
* @param {Phaser.GameObjects.GameObject} child1 - The first Game Object to swap.
722
722
* @param {Phaser.GameObjects.GameObject} child2 - The second Game Object to swap.
723
723
*
724
-
* @return {Phaser.GameObjects.Container} This Container instance.
724
+
* @return {this} This Container instance.
725
725
*/
726
726
swap: function(child1,child2)
727
727
{
@@ -744,7 +744,7 @@ var Container = new Class({
744
744
* @param {Phaser.GameObjects.GameObject} child - The Game Object to move.
745
745
* @param {integer} index - The new position of the Game Object in this Container.
746
746
*
747
-
* @return {Phaser.GameObjects.Container} This Container instance.
747
+
* @return {this} This Container instance.
748
748
*/
749
749
moveTo: function(child,index)
750
750
{
@@ -766,7 +766,7 @@ var Container = new Class({
766
766
* @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]} child - The Game Object, or array of Game Objects, to be removed from the Container.
767
767
* @param {boolean} [destroyChild=false] - Optionally call `destroy` on each child successfully removed from this Container.
768
768
*
769
-
* @return {Phaser.GameObjects.Container} This Container instance.
769
+
* @return {this} This Container instance.
770
770
*/
771
771
remove: function(child,destroyChild)
772
772
{
@@ -799,7 +799,7 @@ var Container = new Class({
799
799
* @param {integer} index - The index of the Game Object to be removed.
800
800
* @param {boolean} [destroyChild=false] - Optionally call `destroy` on the Game Object if successfully removed from this Container.
801
801
*
802
-
* @return {Phaser.GameObjects.Container} This Container instance.
802
+
* @return {this} This Container instance.
803
803
*/
804
804
removeAt: function(index,destroyChild)
805
805
{
@@ -825,7 +825,7 @@ var Container = new Class({
825
825
* @param {integer} [endIndex=Container.length] - An optional end index to search up to (but not included)
826
826
* @param {boolean} [destroyChild=false] - Optionally call `destroy` on each Game Object successfully removed from this Container.
827
827
*
828
-
* @return {Phaser.GameObjects.Container} This Container instance.
0 commit comments