Say I have a Backbone view and I'm regularly replacing the content of el, how would I re-run non-event actions on the new adjusted el contents? For example; say I've replaced the contents and want to have all links use a lightbox script. To attach the script normally, you'd do something like this in render;
this.$el.find('a').box()
But after the content replacement, that would need to be run again. Given that you don't necessarily know when the el contents are being replaced, how would you re-run that? I can't seem to find an event I can delegate to for that--ready, load and change all sound like they could work, but none do. Ideally, I'd like something that I can put in the events hash to call a method which runs those things after each replacement.