These are chat archives for canjs/canjs

28th
Aug 2017
Frank Lemanschik
@frank-dspeed
Aug 28 2017 19:41
@justinbmeyer https://github.com/canjs/canjs/blob/can-kefir/demos/can-kefir/credit-card.html#L7 don't works maybe you forgotten to push? its not in the canjs demo folder?
Kevin Phillips
@phillipskevin
Aug 28 2017 19:50
the site will be updated with 3.10.0 @frank-dspeed
look for it later today / tomorrow
Frank Lemanschik
@frank-dspeed
Aug 28 2017 19:51
Ok :)
Frank Lemanschik
@frank-dspeed
Aug 28 2017 20:36
@phillipskevin ```
Promise {
  _handler: 
   Pending {
     consumers: undefined,
     receiver: undefined,
     handler: Fulfilled { value: [Object] },
     resolved: true } }
is there any incompatiblity with node Promises?
i have a Promise that don't looks good but its fullfilled out of my view
Kevin Phillips
@phillipskevin
Aug 28 2017 20:42
doesn't look good how?
Frank Lemanschik
@frank-dspeed
Aug 28 2017 20:46
it is considered pending
forever i think :)
look at the object it got a pending object that is fullfilled
Kevin Phillips
@phillipskevin
Aug 28 2017 20:50
I'm not sure what that object representation is
Frank Lemanschik
@frank-dspeed
Aug 28 2017 20:50
its exactly whats writen there
:D
the handler has a pending object that has a handler fullfilled and i think that should be copyed over normal to the parent Promise Object
so that isResolved is true
and so that there is value on the Promis Object it self
Kevin Phillips
@phillipskevin
Aug 28 2017 20:53
that stuff gets added by can-reflect-promise under the can.observeData Symbol
not directly on the promise instance
Frank Lemanschik
@frank-dspeed
Aug 28 2017 20:53
then this don't reads the Promise right
because it says always pending and page don't renders
thanks for the tip will fork a debug version of that
Kevin Phillips
@phillipskevin
Aug 28 2017 20:57
ok, if you find an issue, please let us know
Frank Lemanschik
@frank-dspeed
Aug 28 2017 20:57
sure sure will make PR then
Kevin Phillips
@phillipskevin
Aug 28 2017 20:57
:thumbsup:
Nico R.
@nriesco
Aug 28 2017 22:58
is it possible to do something like this? {{#if @index%4 == 0}} show me {{else}} … {{/if}}
Nico R.
@nriesco
Aug 28 2017 23:10
I found a workaround: {{#if ../isMod(@index)}}
and then implement isMod (wherever it is, in this case on the VM one level up)