fix #18: close generator popup on lock

This commit is contained in:
Antelle 2016-02-16 23:01:04 +03:00
parent dd50de3409
commit 935b49899f
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ var GeneratorView = Backbone.View.extend({
this.gen = _.clone(_.find(this.presets, function(pr) { return pr.name === preset; }));
this.gen = _.clone(this.presets[1]);
$('body').one('click', this.remove.bind(this));
this.listenTo(Backbone, 'lock-workspace', this.remove.bind(this));
},
render: function() {