Really need help with overriding with my own backbone models, collections, and views

24 views
Skip to first unread message

Michael Oostdyk

unread,
Aug 6, 2013, 10:11:53 AM8/6/13
to crea...@googlegroups.com
I have a list of items that I would like to use the functionality of create.js as well as create templates and events through backbone. 

From what I can gather, I can add this by creating my own backbone app named bullet and passing it into the CollectionAdd function

jQuery('#accordion_box').midgardCollectionAdd({
     mode : Bullet.Models.Bullet,
     collection:Bullet.Collections.Bullets,
     view:Bullet.Views.Bullet
});

Does anyone have code I could look at that does this? 

I am having a really hard time with adding new, deleting, and running custom events so that I can control what content is actually edited.

In this case I have a link where I just want the text to change but not replace the entire element, or in another case, I just want the user to be able to edit a single image and have the system update the image src and not the actual element. I believe if I can figure out how to get this working I can figure out how to handle that.

Thank you for your replies,
Reply all
Reply to author
Forward
0 new messages