function GlossaryEntry(name, description) {
    if (!(this instanceof GlossaryEntry)) return new GlossaryEntry(name, description);

    this.name = name;
    this.description = description;

    Object.defineProperty(this, 'id', {
        get: _.bind(this.getId, this)
    });
}
/*
A glossary entry is represented by a name and a short description
An unique id for the entry is generated using its name
*/
A glossary entry is represented by a name and a short description
An unique id for the entry is generated using its name
A glossary entry is represented by a name and a short description An unique id for the entry is generated using its name
function GlossaryEntry(name, description) {
    if (!(this instanceof GlossaryEntry)) return new GlossaryEntry(name, description);
    this.name = name;
    this.description = description;
    Object.defineProperty(this, 'id', {
        get: _.bind(this.getId, this)
    });
}
function GlossaryEntry ( name , description ) { if ( ! ( this instanceof GlossaryEntry ) ) return new GlossaryEntry ( name , description ) ; this . name = name ; this . description = description ; Object . defineProperty ( this , 'id' , { get : _ . bind ( this . getId , this ) } ) ; }
A glossary entry is represented by a name and a short description
An unique id for the entry is generated using its name
A glossary entry is represented by a name and a short description An unique id for the entry is generated using its name