Skip to content

Commit

Permalink
[#3404] Add track events with single click, not double.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottDowne authored and mjschranz committed Mar 28, 2013
1 parent 8d5a2c8 commit 7f83ec7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/src/plugin/plugin-list.js
Expand Up @@ -48,7 +48,7 @@ define( [ "util/dragndrop", "util/lang", "editor/editor", "text!layouts/plugin-l
}
});

function onDoubleClick() {
function onClick() {
var trackEvent;

if ( butter.currentMedia.ready ) {
Expand All @@ -59,7 +59,7 @@ define( [ "util/dragndrop", "util/lang", "editor/editor", "text!layouts/plugin-l
}
}

element.addEventListener( "dblclick", onDoubleClick, false );
element.addEventListener( "click", onClick, false );

if ( iconImg ) {
icon.style.backgroundImage = "url('" + iconImg.src + "')";
Expand Down

0 comments on commit 7f83ec7

Please sign in to comment.