Marionette js has a "onDomRefresh" event which can be used after the view has been rendered. I'm looking for something in Backbone which can be used as a alternative to "onDomRefresh" since I don't use marionette.

1 Answers

0
Rudra Pandya On

You could use jquery/javascript function to bind your to function to document/window before unload event

$(window).on('beforeunload', function(){
      //any;
});