Closed Serabe closed 8 years ago
Seems good to me.
@mixonic - Any objections?
@Serabe hm, and you're tested this with Ember? I would expect the reason value
is passed as params
is to allow later keywords to add that stream as a dependency.
@rwjblue I think this will require a release of htmlbars and update to beta
of Ember?
Ya, thanks for the poke @mixonic. Released as v0.14.11.
When an
range
callshandleRedirect
it sets theparams
to an array containing its value. This causes problems with contextual components called with dot syntax.If a contextual component is called with dot syntax and any kind of arguments (either
params
andattrs
) it gets compiled toinline
. But when called without any of them ({{contextual.my-component}}
), it gets compiled to arange
.The
range
calls tohandleRedirect
but setsparams
to be[value]
instead of an empty array, causingpositionalParams
to receive the wrong value.Fixes emberjs/ember.js#12717