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

Commit d5d7e8d

Browse files
committed
style(toast): rename hammer to hammertime
1 parent 45deab0 commit d5d7e8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/toast/toast.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ function QpToastService($timeout, $rootScope, $materialCompiler, $rootElement, $
133133
}
134134
});
135135

136-
var hammer = new Hammer(element[0], {
136+
var hammertime = new Hammer(element[0], {
137137
recognizers: [
138138
[Hammer.Swipe, { direction: Hammer.DIRECTION_HORIZONTAL }]
139139
]
140140
});
141-
hammer.on('swipeleft swiperight', onSwipe);
141+
hammertime.on('swipeleft swiperight', onSwipe);
142142

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

155-
hammer.destroy();
155+
hammertime.destroy();
156156
toastParent.removeClass(toastParentClass);
157157
$timeout.cancel(delayTimeout);
158158
$animate.leave(element, function() {

0 commit comments

Comments
 (0)