jasny/bootstrap — pull request #21 by iksteen (2012-11-16 09:16:22+00:00)
Title: Check if target is dismiss or trigger in FileUpload data-api click handler

Currently, if you use a fileupload that starts out as 'existing' and you click the clear button first, nothing happens. This happens because the data-api callback only checks the parents of e.target for the data-dismiss and data-trigger attributes. This patch first checks if e.target itself has a data-dismiss or data-trigger attribute.