Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 08 05:39
    greenkeeper[bot] commented #5469
  • Apr 08 05:39

    greenkeeper[bot] on @octokit

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

  • Apr 08 01:05

    justinbmeyer on master

    docs: Fix simple typo, convienc… Merge pull request #5480 from t… (compare)

  • Apr 08 01:05
    justinbmeyer closed #5480
  • Apr 08 01:05
    justinbmeyer commented #5480
  • Apr 06 23:45
    greenkeeper[bot] commented #5450
  • Apr 06 23:45

    greenkeeper[bot] on semver-7.2.1

    chore(package): update semver t… (compare)

  • Apr 06 23:39
    greenkeeper[bot] commented #5450
  • Apr 06 23:39

    greenkeeper[bot] on semver-7.2.0

    chore(package): update semver t… (compare)

  • Apr 06 09:32
    timgates42 opened #5480
  • Apr 06 09:24
  • Apr 04 02:26
    phillipskevin opened #5479
  • Apr 03 16:24
    kaleidawave starred canjs/canjs
  • Apr 02 19:18
    JimMorrison723 starred canjs/canjs
  • Apr 01 03:34
    GraceFatima commented on 695c6da
  • Mar 31 06:37
    hrnkoji starred canjs/canjs
  • 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
Mohamed Cherif Bouchelaghem
@cherifGsoul
yes
Christopher Oliphant
@RALifeCoach
do I need to revert to 2.3? or can this be diagnosed fairly quickly?
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));