Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renderCollection inside of contacts.js #32

Open
jabelman opened this issue Sep 4, 2013 · 4 comments
Open

renderCollection inside of contacts.js #32

jabelman opened this issue Sep 4, 2013 · 4 comments

Comments

@jabelman
Copy link

jabelman commented Sep 4, 2013

When does it ever get called? My contacts list never shows anything, so I followed all of the code for doing the status list to see why that one was working but not contacts list. It looks like you did all of the status list updating inside of the render function in the profile view. I am pretty sure my renderCollection function for the chat view isn't working for the same reason as it isn't working in the contacts view. It appears that renderCollection never gets called anywhere throughout the whole repository... is that something the browser is supposed to do automatically?

@jabelman
Copy link
Author

jabelman commented Sep 4, 2013

I see there is this line in the initialize function:

this.collection.on('reset', this.renderCollection, this);

My new question is where does this.collection come from and when does the 'reset' happen?

@jabelman
Copy link
Author

jabelman commented Sep 5, 2013

i changed 'reset' to 'add' and now it actually steps into renderCollection; however, I have encountered a myriad of new issues

@dauvray
Copy link

dauvray commented Aug 25, 2014

Add {reset:true} as argument to your contactsCollection.fetch function in router.js

contactsCollection.fetch({reset:true});

@jifffffy
Copy link

jifffffy commented Nov 2, 2014

the question is in contacts.js , change '.contacts_list' to '#contacts_list'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants