Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
fallback to e.target for firefox compat
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Sep 18, 2012
1 parent 23bae18 commit 5760296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SocialBootstrapApi/Content/js/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
handleClicks: function() {
$(document.body).click(function (e) {
console.log("handleClicks", e);
var dataCmd = $(e.srcElement).data('cmd');
var dataCmd = $(e.srcElement || e.target).data('cmd');
if (!dataCmd) return;

var cmd = dataCmd.split(':'),
Expand Down

0 comments on commit 5760296

Please sign in to comment.