Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 26 22:02
    greenkeeper[bot] commented #5469
  • Mar 26 22:02

    greenkeeper[bot] on @octokit

    chore(package): update @octokit… (compare)

  • Mar 25 21:18
    sdillen starred canjs/canjs
  • Mar 25 20:34
    Aliens-dev starred canjs/canjs
  • Mar 25 19:43
    greenkeeper[bot] commented #5469
  • Mar 25 19:43

    greenkeeper[bot] on @octokit

    chore(package): update @octokit… (compare)

  • Mar 25 08:06
    leepeterson starred canjs/canjs
  • Mar 24 21:23
    greenkeeper[bot] commented #5469
  • Mar 24 21:23

    greenkeeper[bot] on @octokit

    chore(package): update @octokit… (compare)

  • Mar 24 07:00

    greenkeeper[bot] on webpack-4.42.1

    (compare)

  • Mar 24 06:58

    greenkeeper[bot] on webpack-4.42.1

    chore(package): update webpack … (compare)

  • Mar 21 01:00
    greenkeeper[bot] commented #5469
  • Mar 21 01:00

    greenkeeper[bot] on @octokit

    chore(package): update @octokit… (compare)

  • Mar 20 06:52
    christianfelicite starred canjs/canjs
  • Mar 18 10:30
    dinko starred canjs/canjs
  • Mar 17 19:33

    cherifGsoul on master

    Update dist for release (compare)

  • Mar 17 19:33

    cherifGsoul on v6.4.0

    Update dist for release 6.4.0 (compare)

  • Mar 17 19:07

    phillipskevin on prep-can-632

    (compare)

  • Mar 17 19:07

    greenkeeper[bot] on can-view-live-5.0.2

    (compare)

  • Mar 17 19:07
    greenkeeper[bot] closed #5477
Mohamed Cherif Bouchelaghem
@cherifGsoul
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
Sunil George
@georgesunil81
Thanks so much @matthewp. Will do.