Cleaner jQuery selection

This commit is contained in:
Josh Callebaut 2016-06-22 15:36:42 -07:00
parent 0ad8fddff6
commit e953f7fc60

View file

@ -241,7 +241,7 @@ module.exports = class CampaignEditorView extends RootView
onTreemaSelectionChanged: (e, node) =>
return unless node[0]?.data?.original?
elem = @$('div').find('[data-level-original="'+node[0].data.original+'"]')
elem = @$("div[data-level-original='#{node[0].data.original}']")
elem.toggle('pulsate')
setTimeout ()->
elem.toggle('pulsate')