Where communities thrive


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

    chasenlehara on 5119-testing-guide

    Update the Testing guide for Ca… (compare)

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

    cherifGsoul on update-theme-new-buttons

    Theme pre-release 2 (compare)

  • 10:29

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

    (compare)

  • 10:26

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

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

  • 06:40
    HellMagic starred canjs/canjs
  • Sep 19 20:42
    m-mujica commented #5119
  • Sep 19 18:40
    phillipskevin closed #5300
  • Sep 19 18:40
    phillipskevin commented #5300
  • Sep 19 18:39

    phillipskevin on overview-svg

    (compare)

  • Sep 19 18:39

    phillipskevin on major

    fixing svg on technology overvi… Merge pull request #5301 from c… (compare)

  • Sep 19 18:39
    phillipskevin closed #5301
  • Sep 19 18:32
    phillipskevin opened #5301
  • Sep 19 18:31

    phillipskevin on overview-svg

    fixing svg on technology overvi… (compare)

  • Sep 19 18:10

    phillipskevin on overview-svg

    (compare)

  • Sep 19 16:40
    phillipskevin labeled #5300
  • Sep 19 16:40
    phillipskevin opened #5300
  • Sep 19 15:16
    m-mujica edited #5119
  • Sep 19 14:59
    m-mujica edited #5119
Leath Cooper
@IcculusC
nah not yet
Christopher Oliphant
@RALifeCoach
It seems to work. Because 3.0 is suspect and because CanJS is so picky, I forget to look in my code for errors.
Leath Cooper
@IcculusC
well it just frustrates me because I like to write code a specific way and the type of style I normally use is supported according to the docs but doesn't work in the stache parser
Leath Cooper
@IcculusC
oh well I'll just define my events on the component
that's a pretty nifty way to do it anyway
Christopher Oliphant
@RALifeCoach
I like it because it keeps all the information about events in the same place
otherwise part is in stache and part in the viewModel
Leath Cooper
@IcculusC
yeah but in my mind the purpose of the viewmodel is a container for all of the functions(and other goodies) to support the view(the stache) so why would I define the functions outside of the viewmodel
Christopher Oliphant
@RALifeCoach
What is the syntax for a simple click event?
Mason Shin
@minsooshin
anyone know how to guarantee component A’s removed event called first then component B’s inserted event called?
what I am trying to do is when component A is removed hide a global dom element, and when component B is inserted show it again.
I have a Class for the handling global dom, but hide method called later than show method of the class.
Christopher Oliphant
@RALifeCoach
@IcculusC I tried ($click)=“huh()” and I get expr.hash is not a function
Leath Cooper
@IcculusC
yep
going to draft up an issue soon
back in a bit
Christopher Oliphant
@RALifeCoach
That should be simple - point to the demo on their docs page. It has the same result.
Mason Shin
@minsooshin
if I route from A to B, component A’s removed event called later than component B’s inserted event. Is there a way to make sure previous page’s component removed event called first?
Leath Cooper
@IcculusC
lol @RALifeCoach guess waht
I went to start writing a detailed explanation of the issue and I go to the repo
and it's been fixed, just not released
Christopher Oliphant
@RALifeCoach
When is the release scheduled?
Leath Cooper
@IcculusC
haven't looked lol but it was fixed 7 hours ago
Matthew Phillips
@matthewp
@RALifeCoach yes, you define it as a definemap
no more regular Maps
var ViewModel = DefineMap.extend({
  prop: "string"
});

var vm = new ViewModel();
vm.prop = 'foo';
Christopher Oliphant
@RALifeCoach
Thanks @matthewp I was finally able to get it all working.
Matthew Phillips
@matthewp
there's some examples in the major branch you might want to look at
kind of show how DefineMaps are used as vms
Leath Cooper
@IcculusC
will be nice if there's a warning for viewModel vs ViewModel too
Christopher Oliphant
@RALifeCoach
It turned out I had an error in one of my sub-maps. I discovered that by defining the map outside of the component.
Matthew Phillips
@matthewp
viewModel still exists, what would the warning be?
Leath Cooper
@IcculusC
well if you use a DefineMap it doesn't act as expected
Matthew Phillips
@matthewp
right
i forgot why exactly that was
Christopher Oliphant
@RALifeCoach
Also I had to use ViewModel in my component, not viewModel
Leath Cooper
@IcculusC
so maybe the distinction between an instance of Map vs DefineMap and vM vs V
M
Matthew Phillips
@matthewp
maybe we should just warn against using viewModel at all
Leath Cooper
@IcculusC
and a warning if you're using them wrong
also @matthewp good to see those new releases I banged my head against the wall over that expr.hash issue for 3 days before I decided to track it down... then you fix it on the same day lol
Matthew Phillips
@matthewp
ah, sorry
that stuff was broken for a little while
Leath Cooper
@IcculusC
was typing up a detailed issue for you and I went to check the line number and you'd fixed it
Matthew Phillips
@matthewp
I think you're right about viewModel vs ViewModel but I'm not sure what the solution is
can you post an issue in can-component?
Leath Cooper
@IcculusC
nah I was more amused than anything
yeah I'll recreate it and get some details