From e06c3dbb0b0df5e2544b0569072013cc5b9052c6 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Tue, 15 Apr 2014 13:21:33 -0700 Subject: [PATCH] Fixed the thangs tab view preventing the new patches view from handling clicks correctly. --- app/views/editor/level/thangs_tab_view.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/editor/level/thangs_tab_view.coffee b/app/views/editor/level/thangs_tab_view.coffee index 88206a7bd..5c5ca8dbd 100644 --- a/app/views/editor/level/thangs_tab_view.coffee +++ b/app/views/editor/level/thangs_tab_view.coffee @@ -255,6 +255,7 @@ module.exports = class ThangsTabView extends View # @thangsTreema.deselectAll() selectAddThang: (e) => + return unless $(e.target).closest('.editor-level-thangs-tab-view').length if e then target = $(e.target) else target = @$el.find('.add-thangs-palette') # pretend to click on background if no event return true if target.attr('id') is 'surface' target = target.closest('.add-thang-palette-icon')