IgeObject

Method: addGroup

Adds this entity to a group or groups passed as arguments.
addGroup (* groupName)
  • *groupName A group or array of group names to add the entity to.
Returns *

Add entity to a single group

var entity = new IgeEntity();
entity.addGroup('g1');

Add entity to multiple groups

var entity = new IgeEntity();
entity.addGroup('g1', 'g2', 'g3');

Add entity to multiple groups via an array

var entity = new IgeEntity();
entity.addGroup(['g1', 'g2', 'g3']);

Add entity to multiple groups via multiple arrays

var entity = new IgeEntity();
entity.addGroup(['g1', 'g2', 'g3'], ['g4', 'g5']);
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point