Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 14 11:36
    et0and starred canjs/canjs
  • Jan 13 07:39
    khafidprayoga starred canjs/canjs
  • Jan 06 19:51
  • Dec 14 2021 12:31
    mduraidi starred canjs/canjs
  • Dec 04 2021 02:00
    jpmanson starred canjs/canjs
  • Nov 14 2021 12:55
    falleng0d starred canjs/canjs
  • Nov 13 2021 08:06
    g1964j starred canjs/canjs
  • Nov 13 2021 01:34
    bradms starred canjs/canjs
  • Nov 11 2021 18:47

    eddypjr on master

    Update dist for release (compare)

  • Nov 11 2021 18:46
    eddypjr added as member
  • Nov 11 2021 18:30

    eddypjr on v6.6.2

    Update dist for release 6.6.2 (compare)

  • Nov 11 2021 17:17

    justinbmeyer on v6.6.2

    (compare)

  • Nov 11 2021 16:56
    eddypjr removed as member
  • Nov 11 2021 16:52
    eddypjr added as member
  • Nov 11 2021 16:34

    eddypjr on v6.6.2

    Update dist for release 6.6.2 (compare)

  • Nov 08 2021 13:14
    italy starred canjs/canjs
  • Nov 03 2021 23:12
    shoumaw starred canjs/canjs
  • Oct 22 2021 14:19
    MCKanpolat starred canjs/canjs
  • Oct 21 2021 12:12
    bohanyang starred canjs/canjs
  • Oct 14 2021 19:14

    bmomberger-bitovi on v3.9.0

    (compare)

Mohamed Cherif Bouchelaghem
@cherifGsoul
I told you is not ready for production :)
for production use 2.3 for now
Christopher Oliphant
@RALifeCoach
okay - we will go back to 2.3
thanks for your help
Mohamed Cherif Bouchelaghem
@cherifGsoul
you are welcome
Christopher Oliphant
@RALifeCoach
can you please let me know when this is resolved
Mohamed Cherif Bouchelaghem
@cherifGsoul
ok n
np
@RALifeCoach it is resolved
Christopher Oliphant
@RALifeCoach
wow, that was amazing!
Mohamed Cherif Bouchelaghem
@cherifGsoul
install this plugin
Christopher Oliphant
@RALifeCoach
npm install steal-stache?
Mohamed Cherif Bouchelaghem
@cherifGsoul
yes like in the docs in the repo
npm install steal-stache --save
I updated can-playground
Christopher Oliphant
@RALifeCoach
Thanks - my code is running now
Mohamed Cherif Bouchelaghem
@cherifGsoul
no problem
Sunil George
@georgesunil81
A quick question - I want to do a stache {{#if helper arg1 arg2}}{{/if}}, how do I do it syntaxwise?
For example -
{{#if isLicenseExpired visitDate expiration}}<p>Expired</p>{{/if}}
Christopher Oliphant
@RALifeCoach
{{#if helper(arg1, arg2)}}{{/if}}
Sunil George
@georgesunil81
Ah! That is what I was missing, let me try that.
Thanks @RALifeCoach
Christopher Oliphant
@RALifeCoach
You’re welcome
Sunil George
@georgesunil81
Yes, it worked. Thanks @RALifeCoach for the quick help.
Leath Cooper
@IcculusC
o/
anyone have any insight on what's going on here canjs/can-component#27
Christopher Oliphant
@RALifeCoach
Hi all. In 2.3 I could reference this.element.attr. In 3.0 I am getting an error. What’s different in 3.0?
Christopher Oliphant
@RALifeCoach
In 3.0 I can use $(this.element).find, but not $(this.element).attr
Ignore the last comment $(this.element).attr works
Leath Cooper
@IcculusC

@RALifeCoach as far as I understand in 3.0 .attr no longer exists, instead there are automatically populated getters and setters, so where you would have said

let foo = this.attr('bar');

you would now say

let foo = this.bar;

and to set the value of the attribute you'd say

this.bar = someValue;

unless you are trying to get an attribute from the DOM element which would be $(this.element).attr I believe(don't quote me on that part)

I mean, that last bit will work, but not sure if there's a better way within canjs
Matthew Phillips
@matthewp
@halcyonandon fair enough, what would you recommend calling that package then?
Sunil George
@georgesunil81
A quick question - I am getting these warning messages in the console when my staches are rendered -
```
WARN: can/view/stache/mustache_core.js: Unable to find key or helper "client.firstName".
Although the client.firstName shows up on screen, then why is the warning message thrown?
Also, how can I prevent these stache warning messages from showing up in the logs!?
Matthew Phillips
@matthewp
there's a can.dev.logLevel you can set
set it to 2 I think to turn those off
Sunil George
@georgesunil81
Thanks @matthewp for your inputs. I will check on the logLevel property.
Any idea why these warning messages would come up in the first place. Is it because the key is not set on scope when the stache is rendered, but is then later and that is why is shows up on screen?!
Christopher Oliphant
@RALifeCoach
I have created a simple connect (in 3.0) for performing a get. The connect code is:
connect([
    require('can-connect/data/url/url'),
    require('can-connect/constructor/constructor'),
    require('can-connect/can/map/map')
], {
    Map: Players,
    url: config.playersUrl
});
playersUrl is playersUrl: '/modules/page.players-redesign/player-bio/data/players.json’
When I run the code and check the network request, it is asking for "http://localhost:8090/modules/page.players-redesign/player-bio/null?"
can I issue a get on a json file? does a get have to have id data provided?
Here is my get:
           Players.get({}).then($.proxy((data)=>{
                console.log(data);
                this.onPlayersData(data);
            })).catch((err)=>console.log(err));
Matthew Phillips
@matthewp
@georgesunil81 that's exactly why you get the warnings
if you give them an initial value the warnings will go away