From 659f9a8f18afa2209d5d8b666c307219cab69941 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Wed, 1 Oct 2014 14:00:38 +0200 Subject: [PATCH] Add generic id field. --- src/spec.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spec.coffee b/src/spec.coffee index 7300a63e0..485cedfc2 100644 --- a/src/spec.coffee +++ b/src/spec.coffee @@ -203,12 +203,12 @@ module.exports = -> # Injects various common definitions. @val.type = @name if @singleton - @val.ref = -> @key + @val.id = @val.ref = -> @key else # This definition are for non singleton items only. @key = -> @genval.$ref @val.UUID = -> @genval.uuid - @val.ref = -> @genval.$ref + @val.id = @val.ref = -> @genval.$ref @val.poolRef = -> @genval.$poolRef # Main objects all can have associated messages and tags.