Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 18 22:20
    greenkeeper[bot] labeled #5391
  • Oct 18 22:20
    greenkeeper[bot] opened #5391
  • Oct 18 22:20

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

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

  • Oct 18 19:08
    cherifGsoul labeled #5390
  • Oct 18 19:07
    cherifGsoul opened #5390
  • Oct 18 18:45
    greenkeeper[bot] labeled #5389
  • Oct 18 18:45
    greenkeeper[bot] opened #5389
  • Oct 18 18:45

    greenkeeper[bot] on can-observable-bindings-1.3.0

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

  • Oct 18 18:29

    matthewp on master

    Update dist for release (compare)

  • Oct 18 18:29

    matthewp on v6.1.3

    Update dist for release 6.1.3 (compare)

  • Oct 18 17:59

    matthewp on can-observable-array-1.0.2

    (compare)

  • Oct 18 17:59

    matthewp on master

    fix(package): update can-observ… Merge pull request #5388 from c… (compare)

  • Oct 18 17:59
    matthewp closed #5388
  • Oct 18 16:46
    greenkeeper[bot] labeled #5388
  • Oct 18 16:46
    greenkeeper[bot] opened #5388
  • Oct 18 16:46

    greenkeeper[bot] on can-observable-array-1.0.2

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

  • Oct 18 12:45
    greenkeeper[bot] labeled #5387
  • Oct 18 12:45
    greenkeeper[bot] opened #5387
  • Oct 18 12:45

    greenkeeper[bot] on can-stache-element-1.0.2

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

  • Oct 18 09:49
    chasenlehara edited #5384
Justin Meyer
@justinbmeyer
probably
that code needs to run when a component is created
it's subComponent needs to be setup ... it's sub can.Map .... it's template processed ... and the component registered on can.view.tag
too bad class doesn't have some sort of callback for when the function is extended
if there was (or is), we could make it work pretty easily
worst case, you always have to call some sort of .setup() method after extension
we could probably do a lot of this the first time an instance of that map was initialized
So maps could probably be made to work this way pretty easily
@mehiel if you'd like to see this, please create an issue
and link back to this conversation
Aggelos Karalias
@mehiel
I will.. I want to try to find out what's in there in ES6 decorators as well and if they provide any extension hook which would do the .setup() stuff..
@justinbmeyer btw I patched Map today following your "Paper Solution" on bitovi/canjs#1322 and it works as expected.. you just missed a return in the twoLevelDeepExtend method..
Justin Meyer
@justinbmeyer
awesome! can you submit a pull request?
Aggelos Karalias
@mehiel
yp
first thing tomorrow
Matthew Phillips
@matthewp
decorators is not an es6 feature
and i believe not even accepted as a feature at all
Aggelos Karalias
@mehiel
hmmm.. true.. seems like it's under discussion for ES.later (probably 7)..
Matthew Phillips
@matthewp
we should change the Map setup behavior
it's the reason why can is not live-reloadable
can't we just do if(this === Map) there?
Mihai Fantana
@fantanamihai
hi guys. as can extends jquery, where should be the limit using '$' prefix versus 'can' prefix?
Matthew Phillips
@matthewp
what do you mean by prefix?
Alexis Abril
@alexisabril
I think @meconcomputer means can.Deferred vs $.Deferred, etc
Matthew Phillips
@matthewp
Ah, in that case it doesn't matter much.
Alexis Abril
@alexisabril
If you have a route -> :page/:id, and a default route('', { page: 'items' }), is it possible to keep "items" in the url?
'/#!' -> can.route.attr() resolves to {page: 'items'}, which is fine
'/#!page=items&id=0' turns into '#!&id=0'
both keep the correct page info, but page=items is lost from the navigation bar
reno1979
@reno1979
hello all
Can anyone tell me why the canjs model cache plugin is become deprecated
Jeroen Cornelissen
@jeroencornelissen
Is a can.Component only initialized if it's inserted through a stache template?
I have a <my-component> tag in my legacy html but it's not rendered as my can.Component.
reno1979
@reno1979
perhaps use autorender?
because I believe you are right, my custom tags only get used when they are detected when rendering a template
Jeroen Cornelissen
@jeroencornelissen
What do you mean autorender?
Jeroen Cornelissen
@jeroencornelissen
Here is a fiddle of what I'm doing: http://jsfiddle.net/xbau2sxy/
reno1979
@reno1979
works as expected
the html is not being investigated bi the component to look for that custom tag
Jeroen Cornelissen
@jeroencornelissen
Is it possible to make that work?
reno1979
@reno1979
Not that I know
Mihai Fantana
@fantanamihai
@alexisabril @matthewp thanks for answer. Yeah, I was referring to e.g. can.Deferred vs $.Deferred.
I saw there are different implementations in can for 'each', 'extend', 'ajax' .
I think at the base, these functions have the same jquery functionality, but with can support added (Map, compute ).
Is this true?
if so, than should one use can.each, can.extend, can.ajax instead of jQuery ones, just to be sure arguments are properly handled?
Jeroen Cornelissen
@jeroencornelissen
@reno1979 Guess I’ll have to make a jQuery Widget then :worried:
reno1979
@reno1979
@jeroencornelissen Too bad, I thought the autorender would help you
Justin Meyer
@justinbmeyer
    <pre>url={{ routeUrl(undefined,true) }}</pre>

    <a    {{# routeCurrent(page='home') }}class='active'{{/routeCurrent}}
        href="{{ routeUrl(page='home') }}">home</a>

    <a  {{^ routeCurrent(page='restaurants') }}href="{{routeUrl page='restaurants'}}"{{/routeCurrent}}
        >restaurants</a>

    {{#eq page 'home'}}
        <h1>Home page</h1>

    {{else}}
        <h1>Restaurants page</h1>
    {{/eq}}
I'm adding routeUrl and routeCurrent as helpers
Matthew Phillips
@matthewp
are you talking about possible replacements for {{}} in attribute values?