Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
style(toast): rename hammer to hammertime
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Sep 12, 2014
1 parent 45deab0 commit d5d7e8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/toast/toast.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ function QpToastService($timeout, $rootScope, $materialCompiler, $rootElement, $
}
});

var hammer = new Hammer(element[0], {
var hammertime = new Hammer(element[0], {
recognizers: [
[Hammer.Swipe, { direction: Hammer.DIRECTION_HORIZONTAL }]
]
});
hammer.on('swipeleft swiperight', onSwipe);
hammertime.on('swipeleft swiperight', onSwipe);

function onSwipe(ev) {
//Add swipeleft/swiperight class to element so it can animate correctly
Expand All @@ -152,7 +152,7 @@ function QpToastService($timeout, $rootScope, $materialCompiler, $rootElement, $
if (destroy.called) return;
destroy.called = true;

hammer.destroy();
hammertime.destroy();
toastParent.removeClass(toastParentClass);
$timeout.cancel(delayTimeout);
$animate.leave(element, function() {
Expand Down

0 comments on commit d5d7e8d

Please sign in to comment.