Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 29 14:58
    ycjcl868 starred canjs/canjs
  • Nov 25 16:22
    AkramZerarka starred canjs/canjs
  • Nov 24 10:53
    rjgotten edited #5513
  • Nov 24 10:48
    rjgotten edited #5513
  • Nov 24 10:47
    rjgotten edited #5513
  • Nov 24 10:41
    rjgotten edited #5513
  • Nov 24 10:30
    rjgotten opened #5513
  • Nov 24 09:02
    Amine-Smahi starred canjs/canjs
  • Nov 20 08:05
    cduivis starred canjs/canjs
  • Nov 20 08:05
    cduivis starred canjs/canjs
  • Nov 16 08:54
    nullrooter starred canjs/canjs
  • Nov 12 18:48
    cherifGsoul synchronize #5509
  • Nov 12 18:48

    cherifGsoul on upgrade-can-ajax

    Upgrade ios version (compare)

  • Nov 06 17:32

    cherifGsoul on master

    Update dist for release (compare)

  • Nov 06 17:32

    cherifGsoul on v6.6.1

    Update dist for release 6.6.1 (compare)

  • Nov 06 17:26

    cherifGsoul on upgrade-can-param-can-deparam-661

    (compare)

  • Nov 06 17:25

    cherifGsoul on master

    Preapre v6.6.1 (#5512) (compare)

  • Nov 06 17:25
    cherifGsoul closed #5512
  • Nov 05 18:50
    cherifGsoul opened #5512
  • Nov 05 18:38

    cherifGsoul on upgrade-can-param-can-deparam-661

    Preapre v6.6.1 (compare)

Christopher Oliphant
@RALifeCoach
not even the console.log output
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?