Browse files

master: fixed bug where tile type delete dialog wouldn't close

  • Loading branch information...
1 parent 0bef486 commit afaab5e9cc9068c64bce835f19d2b1ee7080ba38 @jojo080889 committed May 13, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/backend.js
View
5 js/backend.js
@@ -367,7 +367,9 @@ $(document).ready(function() {
},
unrender: function(e) {
$(this.el).remove();
- e.stopImmediatePropagation();
+ if (!e.cid) { // if not a model
+ e.stopImmediatePropagation();
+ }
},
remove: function() {
this.model.destroy();
@@ -489,7 +491,6 @@ $(document).ready(function() {
var pieceList = new PieceList();
var tileTypeList = new TileTypeListView();
- var boardView = new BoardView({sizeX: 3, sizeY: 3});
var tileList = new TileList();
var boardEditView = new BoardEditView();

0 comments on commit afaab5e

Please sign in to comment.