FIX: Server side missing jQuery

This commit is contained in:
Robin Ward 2016-05-04 17:00:58 -04:00
parent c775ea7b5e
commit 148c4da23d
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D
1 changed files with 12 additions and 4 deletions

View File

@ -69,10 +69,18 @@
RawHandlebars.JavaScriptCompiler.prototype.namespace = "Discourse.EmberCompatHandlebars";
function buildPath(blk, args) {
return $.extend({ type: "PathExpression",
data: false,
depth: blk.path.depth,
loc: blk.path.loc }, args);
const result = { type: "PathExpression",
data: false,
depth: blk.path.depth,
loc: blk.path.loc };
// Server side precompile doesn't have jquery.extend
Object.keys(args).forEach(function (a) {
result[a] = args[a]}
);
return result;
}
function replaceGet(ast) {