summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/helpers/with.js
diff options
context:
space:
mode:
authorKevin Decker <kpdecker@gmail.com>2015-12-10 14:04:34 -0600
committerKevin Decker <kpdecker@gmail.com>2015-12-10 14:04:34 -0600
commit0f054efcdb581790436c72341b72d92db52a7e3a (patch)
tree5b8e28cafb942cd7ed448e07e5e6076d95e73968 /lib/handlebars/helpers/with.js
parent205c61cfb1acdb599bbdfcf2d356641254e09e5c (diff)
parent3f77b82ed00dc1d71976de76bd4f8dfb6e885f2a (diff)
downloadhandlebars.js-0f054efcdb581790436c72341b72d92db52a7e3a.zip
handlebars.js-0f054efcdb581790436c72341b72d92db52a7e3a.tar.gz
handlebars.js-0f054efcdb581790436c72341b72d92db52a7e3a.tar.bz2
Merge pull request #1148 from machty/rm-trackids-stringparams
Remove stringParams and trackIds mode
Diffstat (limited to 'lib/handlebars/helpers/with.js')
-rw-r--r--lib/handlebars/helpers/with.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/handlebars/helpers/with.js b/lib/handlebars/helpers/with.js
index 7418cd0..bb352c5 100644
--- a/lib/handlebars/helpers/with.js
+++ b/lib/handlebars/helpers/with.js
@@ -1,4 +1,4 @@
-import {appendContextPath, blockParams, createFrame, isEmpty, isFunction} from '../utils';
+import {isEmpty, isFunction} from '../utils';
export default function(instance) {
instance.registerHelper('with', function(context, options) {
@@ -8,14 +8,10 @@ export default function(instance) {
if (!isEmpty(context)) {
let data = options.data;
- if (options.data && options.ids) {
- data = createFrame(options.data);
- data.contextPath = appendContextPath(options.data.contextPath, options.ids[0]);
- }
return fn(context, {
data: data,
- blockParams: blockParams([context], [data && data.contextPath])
+ blockParams: [context]
});
} else {
return options.inverse(this);