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
Justin Meyer
@justinbmeyer
Hey, sorry, it's going to be next week!
sorry, I got totally sidetracked
with something else
I'm going to update the calendar / schedule and everything else
sorry about this
Calendar updated
Justin Meyer
@justinbmeyer
https://plus.google.com/u/1/b/117481170193954630503/events/caj3ue01s0c0qla4lbr72u9ipk8
there's the g+ page for it
Justin Meyer
@justinbmeyer
ok ... training is on today!
Jan Jorgensen
@ramblinjan
documentjs.com
Jan Jorgensen
@ramblinjan
More config details:
http://documentjs.com/docs/DocumentJS.guides.configuring.html
http://documentjs.com/docs/documentjs.tags.html
Cory Robinson
@crobinson42
@justinbmeyer
silly but legit Q
var primary = {};
primary = window;
primary.listeners = {};
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
http://screencast.com/t/CN0y51zJ1Y6
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
??
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