Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 12 19:26
    cherifGsoul review_requested #5443
  • Dec 12 18:34
    cherifGsoul synchronize #5443
  • Dec 12 18:34

    cherifGsoul on document-inserted-removed-can6

    Update after review (compare)

  • Dec 12 17:44

    cherifGsoul on theme-3.0.0-pre.5

    (compare)

  • Dec 12 17:44

    cherifGsoul on master

    Update bit-doc-html-canjs (#544… (compare)

  • Dec 12 17:44
    cherifGsoul closed #5445
  • Dec 12 17:01
    cherifGsoul opened #5445
  • Dec 12 17:01

    cherifGsoul on theme-3.0.0-pre.5

    Update bit-doc-html-canjs Upda… (compare)

  • Dec 12 16:40

    cherifGsoul on update-api-page

    (compare)

  • Dec 12 16:39

    cherifGsoul on master

    Update API page (#5432) * Upda… (compare)

  • Dec 12 16:39
    cherifGsoul closed #5432
  • Dec 12 16:39
    cherifGsoul closed #5304
  • Dec 12 01:04
    greenkeeper[bot] commented #5392
  • Dec 12 01:04

    greenkeeper[bot] on core-js-3.5.0

    chore(package): update core-js … (compare)

  • Dec 11 18:34
    greenkeeper[bot] labeled #5444
  • Dec 11 18:34
    greenkeeper[bot] opened #5444
  • Dec 11 18:34

    greenkeeper[bot] on can-observable-mixin-1.0.7

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

  • Dec 11 18:30

    cherifGsoul on update-infrastructure-page

    (compare)

  • Dec 11 18:30

    cherifGsoul on master

    Update infrastructure page with… (compare)

  • Dec 11 18:30
    cherifGsoul closed #5441
Kevin Phillips
@phillipskevin
page: {
    set function(val) {
        console.log(‘page changed’, val);
        return val;
    }
}
should be the same as steal 0.16
Marc Godard
@MarcGodard
@phillipskevin thanks, will play with that.
Marc Godard
@MarcGodard
@phillipskevin It doesn't seem to work for subpages...
        page: {
            set(newVal) {
                if (newVal == 'listing') {
                    ga('set', { page: newVal + '/' + this.attr("item") , title: this.attr('title') });
                    ga('send', 'pageview');
                } else {
                    ga('set', { page: newVal, title: this.attr('title') });
                    ga('send', 'pageview');
                }
                return newVal;
            }
        },
Kevin Phillips
@phillipskevin
there will be different events for the other properties
Marc Godard
@MarcGodard
I got it to work by using can.route.attr('item')
However, now this set property make my url domain.com/home/ instead of just domain.com/
Marc Godard
@MarcGodard
@phillipskevin I really only need to track subpages... so it seems to work fine when I do the
item: { set(val) {} }
Kevin Phillips
@phillipskevin
yeah, that should work
if that’s all you need
I don’t think that setter should cause your route to change
Marc Godard
@MarcGodard
Yeah. Kinda disappointed in the route stuff. I hope when I move to donejs 1 it is better
It was because I set a default as 'home' so because of the set value for some reason, it would add it to the URL
Kevin Phillips
@phillipskevin
if you have suggestions on how we could improve it, please feel free to open issues
yeah, that sounds like a bug, but I’m not sure
Marc Godard
@MarcGodard
I will once I get into donejs v1.
It wouldn't be fair to report issues on old versions.
My new site is looking real good though. I can't wait to figure out the SSR and all that so I don't run from a build.
Frank Lemanschik
@frank-dspeed
Ehm you should in Production always run from a build
even if your using ssr
Juan Orozco
@Macrofig
DocumentJS question: how do you escape the @? I have @package in a code block so it isn't meant to be a documented. DocumentJS/bit-docs is seeing that and throwing an error.
Chasen Le Hara
@chasenlehara
@Macrofig, just FYI, there’s https://gitter.im/bitovi/documentjs
I don’t know the answer to your question though (if \@ didn’t work)… maybe @justinbmeyer @phillipskevin or @matthewp know?
Juan Orozco
@Macrofig
Ah, for some reason, I thought we consolidated to this and donejs channel.
So, \@ works but there's an issue. I'll take the conversation to docjs channel.
lmagarian
@lmagarian
I'm trying to make a group of checkboxes bound to a DefineList of strings. Using this code:
<input type="checkbox" id="{{item}}" {($checked)}="boolean-to-inList(item, selectedKeys)" />
It is correctly setting the checked state when the page loads
I'd expected selectedKeys to be updated as the checkbox is checked or unchecked but it isn't. What do I need to do differently?
Kevin Phillips
@phillipskevin
can you create a JSBin example?
can’t see anything wrong with just that line
Kevin Phillips
@phillipskevin
lmagarian
@lmagarian
ok, I modified that to use DefineList for the owns array and it still works
Kevin Phillips
@phillipskevin
maybe you don’t have can-stache-converters imported in your app?
Justin Meyer
@justinbmeyer
A walk through of how to build a file navigator ... you can probably skip the first 20 min or so if you are familiar with CanJS
@MarcGodard I wouldn't suggest using can.Control + routes like that
oh, looks like kevin talked to you about it
deepasrikanth
@deepasrikanth
Hi there I need help with something
deepasrikanth
@deepasrikanth
how can i disable cacheConnection? In other words I would like to force not to cache the data and fetch by hitting the API
I am using canJs 3
Kevin Phillips
@phillipskevin
@deepasrikanth if you’re using superMap, you’ll have to change it so you can configure the behaviors yourself
and you can look at the superMap code for the behaviors it is using: https://github.com/canjs/can-connect/blob/master/can/super-map/super-map.js#L22-L48
deepasrikanth
@deepasrikanth
ok thanks. I will check that out. If I have questions I will come back. Thanks again!
Kevin Phillips
@phillipskevin
sure, no problem!
Morgan Heimbeck
@Xitstrategies
in can v2 with a view.attr how do I properly get the attrData.scope._context? I can't do attrData.scope.attr(), etc.
deepasrikanth
@deepasrikanth
Hi Kevin another question.. the problem I am facing that my view is not hitting the API to show the latest data. But if I visit the page again or refresh it works. So I was trying to find a way to disable caching. Hence my previous question. Is there any other way to refresh the view to show the latest instead of clearing cache?
Kevin Phillips
@phillipskevin
maybe that’s not a caching issue