Edit File by line
/home/barbar84/www/wp-conte.../plugins/updraftp.../includes/handleba...
File: handlebars.js
// Pops off the decorator's parameters, invokes the decorator,
[4500] Fix | Delete
// and inserts the decorator into the decorators list.
[4501] Fix | Delete
registerDecorator: function registerDecorator(paramSize, name) {
[4502] Fix | Delete
var foundDecorator = this.nameLookup('decorators', name, 'decorator'),
[4503] Fix | Delete
options = this.setupHelperArgs(name, paramSize);
[4504] Fix | Delete
[4505] Fix | Delete
this.decorators.push(['fn = ', this.decorators.functionCall(foundDecorator, '', ['fn', 'props', 'container', options]), ' || fn;']);
[4506] Fix | Delete
},
[4507] Fix | Delete
[4508] Fix | Delete
// [invokeHelper]
[4509] Fix | Delete
//
[4510] Fix | Delete
// On stack, before: hash, inverse, program, params..., ...
[4511] Fix | Delete
// On stack, after: result of helper invocation
[4512] Fix | Delete
//
[4513] Fix | Delete
// Pops off the helper's parameters, invokes the helper,
[4514] Fix | Delete
// and pushes the helper's return value onto the stack.
[4515] Fix | Delete
//
[4516] Fix | Delete
// If the helper is not found, `helperMissing` is called.
[4517] Fix | Delete
invokeHelper: function invokeHelper(paramSize, name, isSimple) {
[4518] Fix | Delete
var nonHelper = this.popStack(),
[4519] Fix | Delete
helper = this.setupHelper(paramSize, name);
[4520] Fix | Delete
[4521] Fix | Delete
var possibleFunctionCalls = [];
[4522] Fix | Delete
[4523] Fix | Delete
if (isSimple) {
[4524] Fix | Delete
// direct call to helper
[4525] Fix | Delete
possibleFunctionCalls.push(helper.name);
[4526] Fix | Delete
}
[4527] Fix | Delete
// call a function from the input object
[4528] Fix | Delete
possibleFunctionCalls.push(nonHelper);
[4529] Fix | Delete
if (!this.options.strict) {
[4530] Fix | Delete
possibleFunctionCalls.push(this.aliasable('container.hooks.helperMissing'));
[4531] Fix | Delete
}
[4532] Fix | Delete
[4533] Fix | Delete
var functionLookupCode = ['(', this.itemsSeparatedBy(possibleFunctionCalls, '||'), ')'];
[4534] Fix | Delete
var functionCall = this.source.functionCall(functionLookupCode, 'call', helper.callParams);
[4535] Fix | Delete
this.push(functionCall);
[4536] Fix | Delete
},
[4537] Fix | Delete
[4538] Fix | Delete
itemsSeparatedBy: function itemsSeparatedBy(items, separator) {
[4539] Fix | Delete
var result = [];
[4540] Fix | Delete
result.push(items[0]);
[4541] Fix | Delete
for (var i = 1; i < items.length; i++) {
[4542] Fix | Delete
result.push(separator, items[i]);
[4543] Fix | Delete
}
[4544] Fix | Delete
return result;
[4545] Fix | Delete
},
[4546] Fix | Delete
// [invokeKnownHelper]
[4547] Fix | Delete
//
[4548] Fix | Delete
// On stack, before: hash, inverse, program, params..., ...
[4549] Fix | Delete
// On stack, after: result of helper invocation
[4550] Fix | Delete
//
[4551] Fix | Delete
// This operation is used when the helper is known to exist,
[4552] Fix | Delete
// so a `helperMissing` fallback is not required.
[4553] Fix | Delete
invokeKnownHelper: function invokeKnownHelper(paramSize, name) {
[4554] Fix | Delete
var helper = this.setupHelper(paramSize, name);
[4555] Fix | Delete
this.push(this.source.functionCall(helper.name, 'call', helper.callParams));
[4556] Fix | Delete
},
[4557] Fix | Delete
[4558] Fix | Delete
// [invokeAmbiguous]
[4559] Fix | Delete
//
[4560] Fix | Delete
// On stack, before: hash, inverse, program, params..., ...
[4561] Fix | Delete
// On stack, after: result of disambiguation
[4562] Fix | Delete
//
[4563] Fix | Delete
// This operation is used when an expression like `{{foo}}`
[4564] Fix | Delete
// is provided, but we don't know at compile-time whether it
[4565] Fix | Delete
// is a helper or a path.
[4566] Fix | Delete
//
[4567] Fix | Delete
// This operation emits more code than the other options,
[4568] Fix | Delete
// and can be avoided by passing the `knownHelpers` and
[4569] Fix | Delete
// `knownHelpersOnly` flags at compile-time.
[4570] Fix | Delete
invokeAmbiguous: function invokeAmbiguous(name, helperCall) {
[4571] Fix | Delete
this.useRegister('helper');
[4572] Fix | Delete
[4573] Fix | Delete
var nonHelper = this.popStack();
[4574] Fix | Delete
[4575] Fix | Delete
this.emptyHash();
[4576] Fix | Delete
var helper = this.setupHelper(0, name, helperCall);
[4577] Fix | Delete
[4578] Fix | Delete
var helperName = this.lastHelper = this.nameLookup('helpers', name, 'helper');
[4579] Fix | Delete
[4580] Fix | Delete
var lookup = ['(', '(helper = ', helperName, ' || ', nonHelper, ')'];
[4581] Fix | Delete
if (!this.options.strict) {
[4582] Fix | Delete
lookup[0] = '(helper = ';
[4583] Fix | Delete
lookup.push(' != null ? helper : ', this.aliasable('container.hooks.helperMissing'));
[4584] Fix | Delete
}
[4585] Fix | Delete
[4586] Fix | Delete
this.push(['(', lookup, helper.paramsInit ? ['),(', helper.paramsInit] : [], '),', '(typeof helper === ', this.aliasable('"function"'), ' ? ', this.source.functionCall('helper', 'call', helper.callParams), ' : helper))']);
[4587] Fix | Delete
},
[4588] Fix | Delete
[4589] Fix | Delete
// [invokePartial]
[4590] Fix | Delete
//
[4591] Fix | Delete
// On stack, before: context, ...
[4592] Fix | Delete
// On stack after: result of partial invocation
[4593] Fix | Delete
//
[4594] Fix | Delete
// This operation pops off a context, invokes a partial with that context,
[4595] Fix | Delete
// and pushes the result of the invocation back.
[4596] Fix | Delete
invokePartial: function invokePartial(isDynamic, name, indent) {
[4597] Fix | Delete
var params = [],
[4598] Fix | Delete
options = this.setupParams(name, 1, params);
[4599] Fix | Delete
[4600] Fix | Delete
if (isDynamic) {
[4601] Fix | Delete
name = this.popStack();
[4602] Fix | Delete
delete options.name;
[4603] Fix | Delete
}
[4604] Fix | Delete
[4605] Fix | Delete
if (indent) {
[4606] Fix | Delete
options.indent = JSON.stringify(indent);
[4607] Fix | Delete
}
[4608] Fix | Delete
options.helpers = 'helpers';
[4609] Fix | Delete
options.partials = 'partials';
[4610] Fix | Delete
options.decorators = 'container.decorators';
[4611] Fix | Delete
[4612] Fix | Delete
if (!isDynamic) {
[4613] Fix | Delete
params.unshift(this.nameLookup('partials', name, 'partial'));
[4614] Fix | Delete
} else {
[4615] Fix | Delete
params.unshift(name);
[4616] Fix | Delete
}
[4617] Fix | Delete
[4618] Fix | Delete
if (this.options.compat) {
[4619] Fix | Delete
options.depths = 'depths';
[4620] Fix | Delete
}
[4621] Fix | Delete
options = this.objectLiteral(options);
[4622] Fix | Delete
params.push(options);
[4623] Fix | Delete
[4624] Fix | Delete
this.push(this.source.functionCall('container.invokePartial', '', params));
[4625] Fix | Delete
},
[4626] Fix | Delete
[4627] Fix | Delete
// [assignToHash]
[4628] Fix | Delete
//
[4629] Fix | Delete
// On stack, before: value, ..., hash, ...
[4630] Fix | Delete
// On stack, after: ..., hash, ...
[4631] Fix | Delete
//
[4632] Fix | Delete
// Pops a value off the stack and assigns it to the current hash
[4633] Fix | Delete
assignToHash: function assignToHash(key) {
[4634] Fix | Delete
var value = this.popStack(),
[4635] Fix | Delete
context = undefined,
[4636] Fix | Delete
type = undefined,
[4637] Fix | Delete
id = undefined;
[4638] Fix | Delete
[4639] Fix | Delete
if (this.trackIds) {
[4640] Fix | Delete
id = this.popStack();
[4641] Fix | Delete
}
[4642] Fix | Delete
if (this.stringParams) {
[4643] Fix | Delete
type = this.popStack();
[4644] Fix | Delete
context = this.popStack();
[4645] Fix | Delete
}
[4646] Fix | Delete
[4647] Fix | Delete
var hash = this.hash;
[4648] Fix | Delete
if (context) {
[4649] Fix | Delete
hash.contexts[key] = context;
[4650] Fix | Delete
}
[4651] Fix | Delete
if (type) {
[4652] Fix | Delete
hash.types[key] = type;
[4653] Fix | Delete
}
[4654] Fix | Delete
if (id) {
[4655] Fix | Delete
hash.ids[key] = id;
[4656] Fix | Delete
}
[4657] Fix | Delete
hash.values[key] = value;
[4658] Fix | Delete
},
[4659] Fix | Delete
[4660] Fix | Delete
pushId: function pushId(type, name, child) {
[4661] Fix | Delete
if (type === 'BlockParam') {
[4662] Fix | Delete
this.pushStackLiteral('blockParams[' + name[0] + '].path[' + name[1] + ']' + (child ? ' + ' + JSON.stringify('.' + child) : ''));
[4663] Fix | Delete
} else if (type === 'PathExpression') {
[4664] Fix | Delete
this.pushString(name);
[4665] Fix | Delete
} else if (type === 'SubExpression') {
[4666] Fix | Delete
this.pushStackLiteral('true');
[4667] Fix | Delete
} else {
[4668] Fix | Delete
this.pushStackLiteral('null');
[4669] Fix | Delete
}
[4670] Fix | Delete
},
[4671] Fix | Delete
[4672] Fix | Delete
// HELPERS
[4673] Fix | Delete
[4674] Fix | Delete
compiler: JavaScriptCompiler,
[4675] Fix | Delete
[4676] Fix | Delete
compileChildren: function compileChildren(environment, options) {
[4677] Fix | Delete
var children = environment.children,
[4678] Fix | Delete
child = undefined,
[4679] Fix | Delete
compiler = undefined;
[4680] Fix | Delete
[4681] Fix | Delete
for (var i = 0, l = children.length; i < l; i++) {
[4682] Fix | Delete
child = children[i];
[4683] Fix | Delete
compiler = new this.compiler(); // eslint-disable-line new-cap
[4684] Fix | Delete
[4685] Fix | Delete
var existing = this.matchExistingProgram(child);
[4686] Fix | Delete
[4687] Fix | Delete
if (existing == null) {
[4688] Fix | Delete
this.context.programs.push(''); // Placeholder to prevent name conflicts for nested children
[4689] Fix | Delete
var index = this.context.programs.length;
[4690] Fix | Delete
child.index = index;
[4691] Fix | Delete
child.name = 'program' + index;
[4692] Fix | Delete
this.context.programs[index] = compiler.compile(child, options, this.context, !this.precompile);
[4693] Fix | Delete
this.context.decorators[index] = compiler.decorators;
[4694] Fix | Delete
this.context.environments[index] = child;
[4695] Fix | Delete
[4696] Fix | Delete
this.useDepths = this.useDepths || compiler.useDepths;
[4697] Fix | Delete
this.useBlockParams = this.useBlockParams || compiler.useBlockParams;
[4698] Fix | Delete
child.useDepths = this.useDepths;
[4699] Fix | Delete
child.useBlockParams = this.useBlockParams;
[4700] Fix | Delete
} else {
[4701] Fix | Delete
child.index = existing.index;
[4702] Fix | Delete
child.name = 'program' + existing.index;
[4703] Fix | Delete
[4704] Fix | Delete
this.useDepths = this.useDepths || existing.useDepths;
[4705] Fix | Delete
this.useBlockParams = this.useBlockParams || existing.useBlockParams;
[4706] Fix | Delete
}
[4707] Fix | Delete
}
[4708] Fix | Delete
},
[4709] Fix | Delete
matchExistingProgram: function matchExistingProgram(child) {
[4710] Fix | Delete
for (var i = 0, len = this.context.environments.length; i < len; i++) {
[4711] Fix | Delete
var environment = this.context.environments[i];
[4712] Fix | Delete
if (environment && environment.equals(child)) {
[4713] Fix | Delete
return environment;
[4714] Fix | Delete
}
[4715] Fix | Delete
}
[4716] Fix | Delete
},
[4717] Fix | Delete
[4718] Fix | Delete
programExpression: function programExpression(guid) {
[4719] Fix | Delete
var child = this.environment.children[guid],
[4720] Fix | Delete
programParams = [child.index, 'data', child.blockParams];
[4721] Fix | Delete
[4722] Fix | Delete
if (this.useBlockParams || this.useDepths) {
[4723] Fix | Delete
programParams.push('blockParams');
[4724] Fix | Delete
}
[4725] Fix | Delete
if (this.useDepths) {
[4726] Fix | Delete
programParams.push('depths');
[4727] Fix | Delete
}
[4728] Fix | Delete
[4729] Fix | Delete
return 'container.program(' + programParams.join(', ') + ')';
[4730] Fix | Delete
},
[4731] Fix | Delete
[4732] Fix | Delete
useRegister: function useRegister(name) {
[4733] Fix | Delete
if (!this.registers[name]) {
[4734] Fix | Delete
this.registers[name] = true;
[4735] Fix | Delete
this.registers.list.push(name);
[4736] Fix | Delete
}
[4737] Fix | Delete
},
[4738] Fix | Delete
[4739] Fix | Delete
push: function push(expr) {
[4740] Fix | Delete
if (!(expr instanceof Literal)) {
[4741] Fix | Delete
expr = this.source.wrap(expr);
[4742] Fix | Delete
}
[4743] Fix | Delete
[4744] Fix | Delete
this.inlineStack.push(expr);
[4745] Fix | Delete
return expr;
[4746] Fix | Delete
},
[4747] Fix | Delete
[4748] Fix | Delete
pushStackLiteral: function pushStackLiteral(item) {
[4749] Fix | Delete
this.push(new Literal(item));
[4750] Fix | Delete
},
[4751] Fix | Delete
[4752] Fix | Delete
pushSource: function pushSource(source) {
[4753] Fix | Delete
if (this.pendingContent) {
[4754] Fix | Delete
this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent), this.pendingLocation));
[4755] Fix | Delete
this.pendingContent = undefined;
[4756] Fix | Delete
}
[4757] Fix | Delete
[4758] Fix | Delete
if (source) {
[4759] Fix | Delete
this.source.push(source);
[4760] Fix | Delete
}
[4761] Fix | Delete
},
[4762] Fix | Delete
[4763] Fix | Delete
replaceStack: function replaceStack(callback) {
[4764] Fix | Delete
var prefix = ['('],
[4765] Fix | Delete
stack = undefined,
[4766] Fix | Delete
createdStack = undefined,
[4767] Fix | Delete
usedLiteral = undefined;
[4768] Fix | Delete
[4769] Fix | Delete
/* istanbul ignore next */
[4770] Fix | Delete
if (!this.isInline()) {
[4771] Fix | Delete
throw new _exception2['default']('replaceStack on non-inline');
[4772] Fix | Delete
}
[4773] Fix | Delete
[4774] Fix | Delete
// We want to merge the inline statement into the replacement statement via ','
[4775] Fix | Delete
var top = this.popStack(true);
[4776] Fix | Delete
[4777] Fix | Delete
if (top instanceof Literal) {
[4778] Fix | Delete
// Literals do not need to be inlined
[4779] Fix | Delete
stack = [top.value];
[4780] Fix | Delete
prefix = ['(', stack];
[4781] Fix | Delete
usedLiteral = true;
[4782] Fix | Delete
} else {
[4783] Fix | Delete
// Get or create the current stack name for use by the inline
[4784] Fix | Delete
createdStack = true;
[4785] Fix | Delete
var _name = this.incrStack();
[4786] Fix | Delete
[4787] Fix | Delete
prefix = ['((', this.push(_name), ' = ', top, ')'];
[4788] Fix | Delete
stack = this.topStack();
[4789] Fix | Delete
}
[4790] Fix | Delete
[4791] Fix | Delete
var item = callback.call(this, stack);
[4792] Fix | Delete
[4793] Fix | Delete
if (!usedLiteral) {
[4794] Fix | Delete
this.popStack();
[4795] Fix | Delete
}
[4796] Fix | Delete
if (createdStack) {
[4797] Fix | Delete
this.stackSlot--;
[4798] Fix | Delete
}
[4799] Fix | Delete
this.push(prefix.concat(item, ')'));
[4800] Fix | Delete
},
[4801] Fix | Delete
[4802] Fix | Delete
incrStack: function incrStack() {
[4803] Fix | Delete
this.stackSlot++;
[4804] Fix | Delete
if (this.stackSlot > this.stackVars.length) {
[4805] Fix | Delete
this.stackVars.push('stack' + this.stackSlot);
[4806] Fix | Delete
}
[4807] Fix | Delete
return this.topStackName();
[4808] Fix | Delete
},
[4809] Fix | Delete
topStackName: function topStackName() {
[4810] Fix | Delete
return 'stack' + this.stackSlot;
[4811] Fix | Delete
},
[4812] Fix | Delete
flushInline: function flushInline() {
[4813] Fix | Delete
var inlineStack = this.inlineStack;
[4814] Fix | Delete
this.inlineStack = [];
[4815] Fix | Delete
for (var i = 0, len = inlineStack.length; i < len; i++) {
[4816] Fix | Delete
var entry = inlineStack[i];
[4817] Fix | Delete
/* istanbul ignore if */
[4818] Fix | Delete
if (entry instanceof Literal) {
[4819] Fix | Delete
this.compileStack.push(entry);
[4820] Fix | Delete
} else {
[4821] Fix | Delete
var stack = this.incrStack();
[4822] Fix | Delete
this.pushSource([stack, ' = ', entry, ';']);
[4823] Fix | Delete
this.compileStack.push(stack);
[4824] Fix | Delete
}
[4825] Fix | Delete
}
[4826] Fix | Delete
},
[4827] Fix | Delete
isInline: function isInline() {
[4828] Fix | Delete
return this.inlineStack.length;
[4829] Fix | Delete
},
[4830] Fix | Delete
[4831] Fix | Delete
popStack: function popStack(wrapped) {
[4832] Fix | Delete
var inline = this.isInline(),
[4833] Fix | Delete
item = (inline ? this.inlineStack : this.compileStack).pop();
[4834] Fix | Delete
[4835] Fix | Delete
if (!wrapped && item instanceof Literal) {
[4836] Fix | Delete
return item.value;
[4837] Fix | Delete
} else {
[4838] Fix | Delete
if (!inline) {
[4839] Fix | Delete
/* istanbul ignore next */
[4840] Fix | Delete
if (!this.stackSlot) {
[4841] Fix | Delete
throw new _exception2['default']('Invalid stack pop');
[4842] Fix | Delete
}
[4843] Fix | Delete
this.stackSlot--;
[4844] Fix | Delete
}
[4845] Fix | Delete
return item;
[4846] Fix | Delete
}
[4847] Fix | Delete
},
[4848] Fix | Delete
[4849] Fix | Delete
topStack: function topStack() {
[4850] Fix | Delete
var stack = this.isInline() ? this.inlineStack : this.compileStack,
[4851] Fix | Delete
item = stack[stack.length - 1];
[4852] Fix | Delete
[4853] Fix | Delete
/* istanbul ignore if */
[4854] Fix | Delete
if (item instanceof Literal) {
[4855] Fix | Delete
return item.value;
[4856] Fix | Delete
} else {
[4857] Fix | Delete
return item;
[4858] Fix | Delete
}
[4859] Fix | Delete
},
[4860] Fix | Delete
[4861] Fix | Delete
contextName: function contextName(context) {
[4862] Fix | Delete
if (this.useDepths && context) {
[4863] Fix | Delete
return 'depths[' + context + ']';
[4864] Fix | Delete
} else {
[4865] Fix | Delete
return 'depth' + context;
[4866] Fix | Delete
}
[4867] Fix | Delete
},
[4868] Fix | Delete
[4869] Fix | Delete
quotedString: function quotedString(str) {
[4870] Fix | Delete
return this.source.quotedString(str);
[4871] Fix | Delete
},
[4872] Fix | Delete
[4873] Fix | Delete
objectLiteral: function objectLiteral(obj) {
[4874] Fix | Delete
return this.source.objectLiteral(obj);
[4875] Fix | Delete
},
[4876] Fix | Delete
[4877] Fix | Delete
aliasable: function aliasable(name) {
[4878] Fix | Delete
var ret = this.aliases[name];
[4879] Fix | Delete
if (ret) {
[4880] Fix | Delete
ret.referenceCount++;
[4881] Fix | Delete
return ret;
[4882] Fix | Delete
}
[4883] Fix | Delete
[4884] Fix | Delete
ret = this.aliases[name] = this.source.wrap(name);
[4885] Fix | Delete
ret.aliasable = true;
[4886] Fix | Delete
ret.referenceCount = 1;
[4887] Fix | Delete
[4888] Fix | Delete
return ret;
[4889] Fix | Delete
},
[4890] Fix | Delete
[4891] Fix | Delete
setupHelper: function setupHelper(paramSize, name, blockHelper) {
[4892] Fix | Delete
var params = [],
[4893] Fix | Delete
paramsInit = this.setupHelperArgs(name, paramSize, params, blockHelper);
[4894] Fix | Delete
var foundHelper = this.nameLookup('helpers', name, 'helper'),
[4895] Fix | Delete
callContext = this.aliasable(this.contextName(0) + ' != null ? ' + this.contextName(0) + ' : (container.nullContext || {})');
[4896] Fix | Delete
[4897] Fix | Delete
return {
[4898] Fix | Delete
params: params,
[4899] Fix | Delete
paramsInit: paramsInit,
[4900] Fix | Delete
name: foundHelper,
[4901] Fix | Delete
callParams: [callContext].concat(params)
[4902] Fix | Delete
};
[4903] Fix | Delete
},
[4904] Fix | Delete
[4905] Fix | Delete
setupParams: function setupParams(helper, paramSize, params) {
[4906] Fix | Delete
var options = {},
[4907] Fix | Delete
contexts = [],
[4908] Fix | Delete
types = [],
[4909] Fix | Delete
ids = [],
[4910] Fix | Delete
objectArgs = !params,
[4911] Fix | Delete
param = undefined;
[4912] Fix | Delete
[4913] Fix | Delete
if (objectArgs) {
[4914] Fix | Delete
params = [];
[4915] Fix | Delete
}
[4916] Fix | Delete
[4917] Fix | Delete
options.name = this.quotedString(helper);
[4918] Fix | Delete
options.hash = this.popStack();
[4919] Fix | Delete
[4920] Fix | Delete
if (this.trackIds) {
[4921] Fix | Delete
options.hashIds = this.popStack();
[4922] Fix | Delete
}
[4923] Fix | Delete
if (this.stringParams) {
[4924] Fix | Delete
options.hashTypes = this.popStack();
[4925] Fix | Delete
options.hashContexts = this.popStack();
[4926] Fix | Delete
}
[4927] Fix | Delete
[4928] Fix | Delete
var inverse = this.popStack(),
[4929] Fix | Delete
program = this.popStack();
[4930] Fix | Delete
[4931] Fix | Delete
// Avoid setting fn and inverse if neither are set. This allows
[4932] Fix | Delete
// helpers to do a check for `if (options.fn)`
[4933] Fix | Delete
if (program || inverse) {
[4934] Fix | Delete
options.fn = program || 'container.noop';
[4935] Fix | Delete
options.inverse = inverse || 'container.noop';
[4936] Fix | Delete
}
[4937] Fix | Delete
[4938] Fix | Delete
// The parameters go on to the stack in order (making sure that they are evaluated in order)
[4939] Fix | Delete
// so we need to pop them off the stack in reverse order
[4940] Fix | Delete
var i = paramSize;
[4941] Fix | Delete
while (i--) {
[4942] Fix | Delete
param = this.popStack();
[4943] Fix | Delete
params[i] = param;
[4944] Fix | Delete
[4945] Fix | Delete
if (this.trackIds) {
[4946] Fix | Delete
ids[i] = this.popStack();
[4947] Fix | Delete
}
[4948] Fix | Delete
if (this.stringParams) {
[4949] Fix | Delete
types[i] = this.popStack();
[4950] Fix | Delete
contexts[i] = this.popStack();
[4951] Fix | Delete
}
[4952] Fix | Delete
}
[4953] Fix | Delete
[4954] Fix | Delete
if (objectArgs) {
[4955] Fix | Delete
options.args = this.source.generateArray(params);
[4956] Fix | Delete
}
[4957] Fix | Delete
[4958] Fix | Delete
if (this.trackIds) {
[4959] Fix | Delete
options.ids = this.source.generateArray(ids);
[4960] Fix | Delete
}
[4961] Fix | Delete
if (this.stringParams) {
[4962] Fix | Delete
options.types = this.source.generateArray(types);
[4963] Fix | Delete
options.contexts = this.source.generateArray(contexts);
[4964] Fix | Delete
}
[4965] Fix | Delete
[4966] Fix | Delete
if (this.options.data) {
[4967] Fix | Delete
options.data = 'data';
[4968] Fix | Delete
}
[4969] Fix | Delete
if (this.useBlockParams) {
[4970] Fix | Delete
options.blockParams = 'blockParams';
[4971] Fix | Delete
}
[4972] Fix | Delete
return options;
[4973] Fix | Delete
},
[4974] Fix | Delete
[4975] Fix | Delete
setupHelperArgs: function setupHelperArgs(helper, paramSize, params, useRegister) {
[4976] Fix | Delete
var options = this.setupParams(helper, paramSize, params);
[4977] Fix | Delete
options.loc = JSON.stringify(this.source.currentLocation);
[4978] Fix | Delete
options = this.objectLiteral(options);
[4979] Fix | Delete
if (useRegister) {
[4980] Fix | Delete
this.useRegister('options');
[4981] Fix | Delete
params.push('options');
[4982] Fix | Delete
return ['options=', options];
[4983] Fix | Delete
} else if (params) {
[4984] Fix | Delete
params.push(options);
[4985] Fix | Delete
return '';
[4986] Fix | Delete
} else {
[4987] Fix | Delete
return options;
[4988] Fix | Delete
}
[4989] Fix | Delete
}
[4990] Fix | Delete
};
[4991] Fix | Delete
[4992] Fix | Delete
(function () {
[4993] Fix | Delete
var reservedWords = ('break else new var' + ' case finally return void' + ' catch for switch while' + ' continue function this with' + ' default if throw' + ' delete in try' + ' do instanceof typeof' + ' abstract enum int short' + ' boolean export interface static' + ' byte extends long super' + ' char final native synchronized' + ' class float package throws' + ' const goto private transient' + ' debugger implements protected volatile' + ' double import public let yield await' + ' null true false').split(' ');
[4994] Fix | Delete
[4995] Fix | Delete
var compilerWords = JavaScriptCompiler.RESERVED_WORDS = {};
[4996] Fix | Delete
[4997] Fix | Delete
for (var i = 0, l = reservedWords.length; i < l; i++) {
[4998] Fix | Delete
compilerWords[reservedWords[i]] = true;
[4999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function