IgeObject

Method: id

Gets / sets the current object id. If no id is currently assigned and no id is passed to the method, it will automatically generate and assign a new id as a 16 character hexadecimal value typed as a string.
id (String id)
  • Stringid
Returns * Returns this when setting the value or the current value if none is specified.

Get the id of an entity

var entity = new IgeEntity();
console.log(entity.id());

Set the id of an entity

var entity = new IgeEntity();
entity.id('myNewId');

Set the id of an entity via chaining

var entity = new IgeEntity()
    .id('myNewId');
© 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