Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 14 21:13
    greenkeeper[bot] labeled #5378
  • Oct 14 21:12
    greenkeeper[bot] opened #5378
  • Oct 14 21:12

    greenkeeper[bot] on can-simple-map-4.3.3

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

  • Oct 14 20:19
    greenkeeper[bot] labeled #5377
  • Oct 14 20:19
    greenkeeper[bot] opened #5377
  • Oct 14 20:19

    greenkeeper[bot] on @feathersjs

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

  • Oct 14 20:18
    greenkeeper[bot] labeled #5376
  • Oct 14 20:18
    greenkeeper[bot] opened #5376
  • Oct 14 20:18

    greenkeeper[bot] on @feathersjs

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

  • Oct 14 14:43
    greenkeeper[bot] closed #5373
  • Oct 14 14:43

    greenkeeper[bot] on can-deep-observable-1.0.1

    (compare)

  • Oct 14 14:42

    m-mujica on update-deep-observable

    (compare)

  • Oct 14 14:42

    m-mujica on master

    Update can-deep-observable to l… Merge pull request #5374 from c… (compare)

  • Oct 14 14:42
    m-mujica closed #5374
  • Oct 14 14:42
    m-mujica closed #5365
  • Oct 14 14:09
    f-ricci starred canjs/canjs
  • Oct 14 13:55
    greenkeeper[bot] commented #5375
  • Oct 14 13:55

    greenkeeper[bot] on core-js-3.3.2

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

  • Oct 14 10:51
    m-mujica review_requested #5374
  • Oct 14 07:43
    rjgotten commented #5358
Christopher Oliphant
@RALifeCoach
If I click on ‘here’ before the timer fires, then it works and the timer event throws an exception. If I wait for the timer to fire, the names disappear and clicking on the anchor throws and exception.
It is a short JSBin
Christopher Oliphant
@RALifeCoach
Things work fine when I update the simple PID property.
Kevin Phillips
@phillipskevin
Ok I'll take a look. Might be 45 mins or an hour.
Christopher Oliphant
@RALifeCoach
thanks
Kevin Phillips
@phillipskevin
@RALifeCoach is there something specific you want me to look at in the jsbin?
are you just wondering why the last line doesn’t work?
Christopher Oliphant
@RALifeCoach
I am just wondering why the last line doesn’t work. It seems I cannot replace an attribute which is an object.
Kevin Phillips
@phillipskevin
it just looks like that attribute is not set
Christopher Oliphant
@RALifeCoach
it is set earlier - it becomes unset when I try to update the player object
Kevin Phillips
@phillipskevin
is this related to the question about not using Maps?
Christopher Oliphant
@RALifeCoach
yes
Kevin Phillips
@phillipskevin
does jquery.attr allow you to pass objects?
Christopher Oliphant
@RALifeCoach
I’m not sure. I can try in the JSBin.
Kevin Phillips
@phillipskevin
I think that is the problem
it looks like it’s toStringing your object
Christopher Oliphant
@RALifeCoach
okay, any ideas on a solution?
Kevin Phillips
@phillipskevin
this is something you need to do in your real code?
Christopher Oliphant
@RALifeCoach
is there a can equivalent?
Yes, this is something that will have to happen in my code.
Kevin Phillips
@phillipskevin
so you call template({pid: '11111', player: player}) with the initial data from the server
and then later you need to update it?
Christopher Oliphant
@RALifeCoach
yes - that is correct
the data in player will change often
Kevin Phillips
@phillipskevin
so maybe there is some confusion
@justinbmeyer in many ways my code is quite simple. All data is display only. There is some binding against controls, but not against the data itself.
I definitely misunderstood that to mean the data wouldn’t be changing
I have to run to a meeting, be back in a few
Christopher Oliphant
@RALifeCoach
okay - thanks
Kevin Phillips
@phillipskevin
I would say that you do want to use a Map then
but maybe Justin can explain more what he was suggesting when he is around later
Christopher Oliphant
@RALifeCoach
actually - your question started me thinking - I changed .attr(‘player', player) to .data(‘player’, player) and the JSBin is now working
Kevin Phillips
@phillipskevin
it’s working? or it’s just not throwing an error?
I don’t see it change to iiiii ppppp
Christopher Oliphant
@RALifeCoach
You’re right - I spoke too soon
Bummer
Christopher Oliphant
@RALifeCoach
that’s working
it’s a bit sketchy, but it’s working
Kevin Phillips
@phillipskevin
ok
I’m not really sure if that will perform any better
Christopher Oliphant
@RALifeCoach
either am I
and it will take me a couple of hours of work to find out
Thomas Sieverding
@Bajix
Why are you doing this playerStr stuff?
You can just set player to an object
Christopher Oliphant
@RALifeCoach
Because I am trying to pass an object into the component via attributes
that didn’t work when I tried it
Thomas Sieverding
@Bajix
You’re trying to construct the component from JSON passed as attributes?
Christopher Oliphant
@RALifeCoach
yes