Skip to content

Commit

Permalink
Remove touch events in favor of fastclick-enhanced click events
Browse files Browse the repository at this point in the history
  • Loading branch information
thedeerchild committed Jul 23, 2014
1 parent be629d7 commit 5cf756d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/foundation/foundation.reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
});

S(document)
.on('touchend.fndtn.reveal click.fndtn.reveal', this.close_targets(), function (e) {
.on('click.fndtn.reveal', this.close_targets(), function (e) {

e.preventDefault();

Expand Down
2 changes: 1 addition & 1 deletion js/foundation/foundation.tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@

$tip.fadeOut(150, function() {
$tip.find('.tap-to-close').remove();
$tip.off('click.fndtn.tooltip.tapclose touchstart.fndtn.tooltip.tapclose MSPointerDown.fndtn.tapclose');
$tip.off('click.fndtn.tooltip.tapclose MSPointerDown.fndtn.tapclose');
$target.removeClass('open');
});
},
Expand Down
2 changes: 1 addition & 1 deletion js/foundation/foundation.topbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
self.resize.call(self);
}, 50)).trigger('resize').trigger('resize.fndtn.topbar');

S('body').off('.topbar').on('click.fndtn.topbar touchstart.fndtn.topbar', function (e) {
S('body').off('.topbar').on('click.fndtn.topbar', function (e) {
var parent = S(e.target).closest('li').closest('li.hover');

if (parent.length > 0) {
Expand Down

0 comments on commit 5cf756d

Please sign in to comment.