Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Cory Robinson
    @crobinson42
    console.log(window) and there is no ‘listeners’ property BUT you can still access window.listeners // {} empty object
    Alexis Abril
    @alexisabril
    that code adds a listeners property for me in chrome
    I assume your question was "why is listeners not appearing in the console.log?" - for clarification
    Cory Robinson
    @crobinson42
    huh?
    Alexis Abril
    @alexisabril
    heh, what was your question :)
    Cory Robinson
    @crobinson42
    run this
    Object.keys(window).forEach(function(i){ if (i == 'listeners' ){return 'bam! its there!'} });
    Alexis Abril
    @alexisabril
    what would you expect out of that line?
    I'm not sure if a forEach with a return function will have any noticeable effect
    if you change "return 'bam'..." to console.log('here');, the console finds the correct property
    err, the console shows rather
    Cory Robinson
    @crobinson42
    console.log instead of return.. damnit i’m going nuts! it’s Friday and I’ve been at a hotfix for prod since yesterday at 2pm!
    lmao
    Alexis Abril
    @alexisabril
    no worries :)
    Cory Robinson
    @crobinson42
    happy friday man.. thx for a shoulder to lean on :fire:
    Alexis Abril
    @alexisabril
    np, enjoy the weekend!
    Justin Meyer
    @justinbmeyer
    we will be starting in 2 min
    Mohamed Cherif Bouchelaghem
    @cherifGsoul
    link
    ??
    Mohamed Cherif Bouchelaghem
    @cherifGsoul
    thanks
    Mohamed Cherif Bouchelaghem
    @cherifGsoul
    how the viewModel fires saved event?
    Matthew Phillips
    @matthewp
    are you asking if it fires a saved event?
    Mohamed Cherif Bouchelaghem
    @cherifGsoul
    how it does it? I dont see a saved property?
    In the events object of the component I saw "{viewModel} saved"? no?
    Matthew Phillips
    @matthewp
    can.trigger(this, "saved")
    Mohamed Cherif Bouchelaghem
    @cherifGsoul
    ah I was late that's why I missed that thanks
    I see now we have viewModel.extend ok sorry for the disturb :)
    Mohamed Cherif Bouchelaghem
    @cherifGsoul
    what??? localstorge stuff should be documented !!
    this is can-connect, not can.Model
    Mohamed Cherif Bouchelaghem
    @cherifGsoul
    yes yes
    Mohamed Cherif Bouchelaghem
    @cherifGsoul
    I have an example for this organisation also https://github.com/cherifGsoul/jsmeetup/tree/master/components/emails
    Matthew Phillips
    @matthewp
    nice!
    missing docs ;)
    Mohamed Cherif Bouchelaghem
    @cherifGsoul
    yes yes and tests
    is for learning purpose
    I need some guidance on async tests is there's training for that
    Matthew Phillips
    @matthewp
    sure, what's the issue?
    Mohamed Cherif Bouchelaghem
    @cherifGsoul
    I dont know how to do it well
    thank you @justinbmeyer @matthewp for this training
    @matthewp I think I need more practice on unit testing!!
    Matthew Phillips
    @matthewp
    just write a lot of them :)
    Mohamed Cherif Bouchelaghem
    @cherifGsoul
    haha of course
    Justin Meyer
    @justinbmeyer
    @/all DoneJS release article preview: http://blog.bitovi.com/?p=1946&preview=1&_ppp=20859669cd let me know what you think. Please don't tweet or post.
    about to start
    Matthew Phillips
    @matthewp
    @cherifGsoul watching?