Fixed the thangs tab view preventing the new patches view from handling clicks correctly.

This commit is contained in:
Scott Erickson 2014-04-15 13:21:33 -07:00
parent 1efabc3738
commit e06c3dbb0b

View file

@ -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')