Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.
/ scenic Public archive

Commit

Permalink
Move delete-dialog lines from handler to app-view.
Browse files Browse the repository at this point in the history
Code refactoring.
  • Loading branch information
HyeonJe Jun committed Nov 22, 2012
1 parent 87b7537 commit b473524
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions client/js/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ var handlers = {
window.socket.disconnect();
window.socket = null;
}

// delete dialog if exists
if(window._bootstrap_dialog) {
window._bootstrap_dialog.remove();
}
},

channel: function(channel) {
Expand Down
5 changes: 5 additions & 0 deletions client/js/views/app-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ var AppView = Backbone.View.extend({
// remove picture resize handler
$(window).unbind('resize.picture');

// delete dialog if exists
if(window._bootstrap_dialog) {
window._bootstrap_dialog.remove();
}

if(router && router.channel) {
this.channel = router.channel;
}
Expand Down

0 comments on commit b473524

Please sign in to comment.