Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 03:58

    greenkeeper[bot] on @octokit

    (compare)

  • 03:57

    greenkeeper[bot] on @octokit

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

  • Sep 20 21:04
    m-mujica commented #5303
  • Sep 20 20:23
    m-mujica opened #5303
  • Sep 20 20:23

    m-mujica on upgrade-deps

    Update can-type and can-stache-… (compare)

  • Sep 20 20:05
    m-mujica edited #5302
  • Sep 20 20:03
    m-mujica synchronize #5302
  • Sep 20 20:03

    m-mujica on upgrade

    Upgrade routing guide to Can 6 Fix incorrect highlight Use svg images (instead of .png) (compare)

  • Sep 20 19:32
    m-mujica opened #5302
  • Sep 20 19:29

    m-mujica on upgrade

    Upgrade routing guide to Can 6 Fix incorrect highlight (compare)

  • Sep 20 17:42

    m-mujica on upgrade

    WIP: Upgrade (compare)

  • Sep 20 17:06
    do-adams starred canjs/canjs
  • Sep 20 13:34

    chasenlehara on 5119-testing-guide

    Update the Testing guide for Ca… (compare)

  • Sep 20 13:21
    cherifGsoul commented #5295
  • Sep 20 13:18
    cherifGsoul synchronize #5295
  • Sep 20 13:18

    cherifGsoul on update-theme-new-buttons

    Theme pre-release 2 (compare)

  • Sep 20 10:29

    greenkeeper[bot] on socket.io-client-2.3.0

    (compare)

  • Sep 20 10:26

    greenkeeper[bot] on socket.io-client-2.3.0

    chore(package): update socket.i… (compare)

  • Sep 20 06:40
    HellMagic starred canjs/canjs
  • Sep 19 20:42
    m-mujica commented #5119
Gregg Roemhildt
@roemhildtg
@pYr0x Thanks!
Julian
@pYr0x
np
JigneshVasoya3292
@JigneshVasoya3292
Hi ,
I'm facing an issue while setting attributes on a can.Map, : http://jsbin.com/leweyefeza/edit?html,js,console,output Can anyone please help me figuring out what I might be doing wrong? @imjoshdean @akagomez
Aslo, there's one more similar issue : http://jsbin.com/wovicujeme/edit?html,js,console,output
Christopher Oliphant
@RALifeCoach
Hello All
I am attempting to run CanJS/StealJS unit tests using Karma and Jasmine
I can see steal load and I can see it load all the node_modules
I am using karma-steal-npm is anyone familiar with this?
Julian
@pYr0x
@JigneshVasoya3292 what is the problem?
JigneshVasoya3292
@JigneshVasoya3292
The issue is the way obj is getting ipdated with obj.attr({'someattr': attrvalue}) & obj.attr('someattr', attrvalue).
If you clook at Jsbin, you can see the issue.
Btw which JSbin you're referring to?
Julian
@pYr0x
the frist one
sorry cant follow, waht is the problem?
map.attr(key, value)
map.attr(obj[, removeOthers])
Assigns each value in obj to a property on this can.Map named after the corresponding key in obj, effectively merging obj into the Map.
JigneshVasoya3292
@JigneshVasoya3292
Yes, you're right, but while merging, if the updated list has lesser value than exsiting list, then it should be removed. The old value is staying in this case.
Julian
@pYr0x
i dont think merging mean "deep merging"
JigneshVasoya3292
@JigneshVasoya3292
If I pass plain object to .attr(), removed values stays , while if I use .attr(key, value'), the object getts overwritten
is that what u prefer?
JigneshVasoya3292
@JigneshVasoya3292
Yes, But in my case , I blindly pass the plain object, i.e my object ahs multiple attributes, so I don't want to use 'remove' flag as true for all.
Julian
@pYr0x
so what do you want instead?
JigneshVasoya3292
@JigneshVasoya3292
While merging it should give the same result as setting to true, in my case (when udpated list has less values than original ).
Should merging remove the attributes when obj is merged with updated obj?
Julian
@pYr0x
and why do you cant use true
i dont understand
JigneshVasoya3292
@JigneshVasoya3292
That's one solution, I understand taht.
But my doubt is , whether the current implementation has a flaw or Am I misunderstanding it?
'Should merging remove the attributes when obj is merged with updated obj?'
This is my doubt
Christopher Oliphant
@RALifeCoach
@phillipskevin Are you around to assist with a karma question?
Kevin Phillips
@phillipskevin
sure
if I can :smile:
Christopher Oliphant
@RALifeCoach
It is trying to load /base/541225d08418bb4185e186840ac3f6c72470ff3e/541225d08418bb4185e186840ac3f6c72470ff3e.js
I have no idea what that file is. I was hoping you might know
Kevin Phillips
@phillipskevin
hmm, no idea
Christopher Oliphant
@RALifeCoach
and running it against 3.0 and steal 1.0
okay - thanks
Kevin Phillips
@phillipskevin
can you open the debugger and look at the sources?
Christopher Oliphant
@RALifeCoach
yes - which source would you like me to open?
Kevin Phillips
@phillipskevin
I assume that folder doesn’t exist?
Christopher Oliphant
@RALifeCoach
no it does not
Kevin Phillips
@phillipskevin
ok
I can’t really guess what would cause that without seeing the project
can’t think of anything off the top of my head
Christopher Oliphant
@RALifeCoach
I’ll create a stripped down version on my code and see if it continues to happen
Kevin Phillips
@phillipskevin
sounds good
Christopher Oliphant
@RALifeCoach
If it does then I’ll store it on github