| Index: src/templates.js
|
| diff --git a/src/templates.js b/src/templates.js
|
| index b7e1527fc65746666f85c4230faadac12bef2dfc..b273bc39e816e1a828e891506564113b3ae526c3 100644
|
| --- a/src/templates.js
|
| +++ b/src/templates.js
|
| @@ -4,8 +4,6 @@
|
|
|
| // Called from a desugaring in the parser.
|
|
|
| -var $getTemplateCallSite;
|
| -
|
| (function(global, utils) {
|
|
|
| "use strict";
|
| @@ -67,7 +65,7 @@ function SetCachedCallSite(siteObj, hash) {
|
| }
|
|
|
|
|
| -$getTemplateCallSite = function(siteObj, rawStrings, hash) {
|
| +function GetTemplateCallSite(siteObj, rawStrings, hash) {
|
| var cached = GetCachedCallSite(rawStrings, hash);
|
|
|
| if (!IS_UNDEFINED(cached)) return cached;
|
| @@ -78,4 +76,9 @@ $getTemplateCallSite = function(siteObj, rawStrings, hash) {
|
| return SetCachedCallSite(%ObjectFreeze(siteObj), hash);
|
| }
|
|
|
| +// ----------------------------------------------------------------------------
|
| +// Exports
|
| +
|
| +%InstallToContext(["get_template_call_site", GetTemplateCallSite]);
|
| +
|
| })
|
|
|