From 0c020b736d8d46f18e2e671d7b928e146db5572e Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Fri, 16 Feb 2018 14:56:32 -0500 Subject: [PATCH] Produce consts as part of rater object --- src/current/compiler/fragments.xsl | 6 ++++- src/current/compiler/js.xsl | 36 +++++++++++++++++++----------- 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/src/current/compiler/fragments.xsl b/src/current/compiler/fragments.xsl index 23dcae97..8fee1675 100644 --- a/src/current/compiler/fragments.xsl +++ b/src/current/compiler/fragments.xsl @@ -128,7 +128,11 @@ - + + + diff --git a/src/current/compiler/js.xsl b/src/current/compiler/js.xsl index 66741405..95541cd3 100644 --- a/src/current/compiler/js.xsl +++ b/src/current/compiler/js.xsl @@ -65,18 +65,11 @@ - var debug = {}; var consts = {}; + var debug = {}; var params = {}; var types = {}; var meta = {}; - - @@ -162,7 +155,6 @@ premium: ( Math.round( args.___yield * 100 ) / 100 ), classes: classes, vars: args, - consts: consts, reqParams: req_params, debug: debug }; @@ -174,6 +166,7 @@ '; rater.meta = meta; + rater.consts = consts; @@ -383,6 +376,9 @@ @return property representing a specific value --> @@ -412,7 +409,7 @@ @return JS object assignment for constant set values --> - + + + +