Where communities thrive
Join over
1.5M+ people
Join over
100K+ communities
Free
without limits
Create
your own community
Explore more communities
bitovi/js-training
People
Repo info
Activity
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
??
Justin Meyer
@justinbmeyer
https://plus.google.com/events/cflp8i55r8r127d6iva0jcaqcpk
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 !!
_
Matthew Phillips
@matthewp
http://connect.canjs.com/doc/can-connect%7Cdata%7Clocalstorage-cache.html
this is can-connect, not can.Model
Mohamed Cherif Bouchelaghem
@cherifGsoul
yes yes
Matthew Phillips
@matthewp
http://connect.canjs.com/doc/can-connect%7Ccan%7Csuper-map.html
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.
Justin Meyer
@justinbmeyer
https://plus.google.com/u/1/b/117481170193954630503/events/c3inct5rlt4d6v83j1bi7adqtbc
about to start
Matthew Phillips
@matthewp
@cherifGsoul
watching?
we're building the donejs chat app
Mohamed Cherif Bouchelaghem
@cherifGsoul
Oh sorry
@matthewp
I was working I will download it from youtube :(
Alexis Abril
@alexisabril
Hey everyone, we're about to get started!
https://plus.google.com/events/cn4u4eom46v0bi095f6v1c3c9gc
Alexis Abril
@alexisabril
tech difficulties, we're creating a new link :D
that was a misclick ;)
https://plus.google.com/events/c8i4h0f14oj99ukbp636j2pckf8