FIX: Server side missing jQuery
This commit is contained in:
parent
c775ea7b5e
commit
148c4da23d
|
@ -69,10 +69,18 @@
|
||||||
RawHandlebars.JavaScriptCompiler.prototype.namespace = "Discourse.EmberCompatHandlebars";
|
RawHandlebars.JavaScriptCompiler.prototype.namespace = "Discourse.EmberCompatHandlebars";
|
||||||
|
|
||||||
function buildPath(blk, args) {
|
function buildPath(blk, args) {
|
||||||
return $.extend({ type: "PathExpression",
|
|
||||||
data: false,
|
const result = { type: "PathExpression",
|
||||||
depth: blk.path.depth,
|
data: false,
|
||||||
loc: blk.path.loc }, args);
|
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) {
|
function replaceGet(ast) {
|
||||||
|
|
Loading…
Reference in New Issue