Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 20:11

    matthewp on master

    Update dist for release (compare)

  • 20:11

    matthewp on v6.2.0

    Update dist for release 6.2.0 (compare)

  • 20:05

    matthewp on master

    Fix bundlesize (compare)

  • 19:22

    matthewp on can-observable-bindings-1.3.0

    (compare)

  • 19:22

    matthewp on master

    fix(package): update can-observ… Set new bundle sizes Merge pull request #5389 from c… (compare)

  • 19:22
    matthewp closed #5389
  • 19:09
    matthewp commented #5389
  • 18:33

    matthewp on can-attribute-observable-2.0.1

    (compare)

  • 18:33

    matthewp on master

    fix(package): update can-attrib… Increase the bundlesize Merge pull request #5394 from c… (compare)

  • 18:33
    matthewp closed #5394
  • 17:59
    matthewp synchronize #5394
  • 17:59

    matthewp on can-attribute-observable-2.0.1

    Increase the bundlesize (compare)

  • 17:42
    matthewp synchronize #5389
  • 17:42

    matthewp on can-observable-bindings-1.3.0

    fix(package): update can-observ… Set new bundle sizes (compare)

  • 17:26
    greenkeeper[bot] labeled #5394
  • 17:26
    greenkeeper[bot] opened #5394
  • 17:26

    greenkeeper[bot] on can-attribute-observable-2.0.1

    fix(package): update can-attrib… (compare)

  • 17:15

    matthewp on can-stache-element-1.0.2

    (compare)

  • 17:15

    matthewp on master

    fix(package): update can-stache… Merge pull request #5387 from c… (compare)

  • 17:15
    matthewp closed #5387
Justin Meyer
@justinbmeyer
image.png
CanJS's recipes :)
Justin Meyer
@justinbmeyer
Tomorrow, I might do a hangout covering CanJS debugging tricks
Mohamed Cherif Bouchelaghem
@cherifGsoul
@justinbmeyer at what time, please?
Viktor Busko
@Lighttree
Guys, is there any way to know that helper used as html attribute value ?
Julian
@pYr0x
@justinbmeyer here is a example about our discussion
Viktor Busko
@Lighttree

@phillipskevin Hi, if you are interested I found workaround for the issue that I had here:
https://gitter.im/canjs/canjs?at=5b90dfb5f5402f32aae63c4d

https://codepen.io/Lighttree/pen/VEvqwM

I store all translations in DefineMap instance and use it in helper.
Key point here is to to call get/set on defineMap and return same from helper. It started to work.
This forced me to go away from text nodes but I think they brought more issues as result.
I hope that having text props in observable won't hit performance.

Justin Meyer
@justinbmeyer
@pYr0x just an FYI ... <content> is ignored within a mounted component
Is that what you wanted?
Justin Meyer
@justinbmeyer
Here's an example with everything working I think: https://codepen.io/justinbmeyer/pen/ePZmgY?editors=1010
Justin Meyer
@justinbmeyer
Gregg Roemhildt
@roemhildtg
+1 @justinbmeyer
Gregg Roemhildt
@roemhildtg
Very useful!
Are these possible now too?
on:click="this.prop ++"?
Justin Meyer
@justinbmeyer
I was just asked that. The ++ expression is not supported. We’d need to update the parser. (Not hard if one knows parsing)
Justin Meyer
@justinbmeyer
Julian
@pYr0x
@justinbmeyer but thats to point, i want to have my html boilerplate in the html page and i dont want to have only a <my-app></my-app> snippet. is there no easy code change that will enable content within a mounted component?
Ivo Pinheiro
@ivospinheiro
Hi guys,
I'm working now on upgrading my application from CanJS 3 to CanJS 4 and I'm facing some problems related with the usage of can-set and can-jquery.
Do I have to replace the can-set package by can-set-legacy and can-jquery by can-ajax for ajax requests and jquery?
Gregg Roemhildt
@roemhildtg
Anyone know why this isn't working? (can-stache@4.13)
scope.vm appears to be pointing to component 1 viewmodel
<component-1>
    <component-2>
        <component-3 val:from="scope.vm.prop" />
    </component-2>
</component-1>
Viktor Busko
@Lighttree

@roemhildtg

https://canjs.com/doc/can-stache/keys/scope.html#scope_viewModel

maybe you need scope.viewModel.prop ?

not vm
Viktor Busko
@Lighttree
Because vm documentation says: scope.vm - The first context that is a viewModel. Which is component-1

maybe you need scope.viewModel.prop ?

Or even this.prop

Gregg Roemhildt
@roemhildtg
Oh okay. Thanks @Lighttree
I'll give that a shot
So I wanted to reference the prop on the root view model. I think the only way to do this would be to walk up the scope then with ../
Viktor Busko
@Lighttree
aahh.. I was thinking that you wanted to get component-3 prop )
Gregg Roemhildt
@roemhildtg
Yeah, I can see I mislead you :) sorry I wasn't clear on that.
But your link to the docs helped figure out why I had the issue
:)
Ivo Pinheiro
@ivospinheiro
Hi again!
I'm facing a problem related with the usage of DefineMap together with can-connect constructor store.
Here is a link to a sample project that shows the problem:
https://codesandbox.io/embed/j17m0n23w?expanddevtools=1&moduleview=1
Ivo Pinheiro
@ivospinheiro
It seems that when using can-connect constructor store and adding an eventlistener on a derived property that calls serialize function, all the new instances will have the same property values
Ivo Pinheiro
@ivospinheiro
I was trying to upgrade can-define versions 2.X one by one to check when this code stops working and it seems that this issue has been introduced from version v2.5.12 to v2.6.0
Justin Meyer
@justinbmeyer
@ivospinheiro yes, you need to update those
I'll checkout what you wrote more after this meeting
@/all We are going to discuss this month's survey proposals: https://www.youtube.com/watch?v=wUhv5zIUBv0
Ivo Pinheiro
@ivospinheiro
@justinbmeyer when possible please give a look to the sample code I've posted, I don't understand why there is this new behavior
Justin Meyer
@justinbmeyer
Will try to check out as soon as I can. Keen reminding me. Thanks! @ivospinheiro
My daughter tore down a kitchen cabinet door. Headed to buy a new one ...
Ivo Pinheiro
@ivospinheiro
Hi @justinbmeyer!
Just a reminder. Have you had the opportunity to a give a look to the sample code?
Justin Meyer
@justinbmeyer
@ivospinheiro are those the 5.0 versions of can-connect?
idProp: "id", isn't supported
you use {identity} in 5.0
b