Skip to content

Commit 53af579

Browse files
author
Chris Hawes
committed
Remove redundant if statement as suggested from code review
1 parent df41f68 commit 53af579

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

js/angular/components/common/common.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@
162162
threshold: 5, // this is how far the swipe has to travel
163163
velocity: 0.5 // and this is how fast the swipe must travel
164164
});
165-
}
166-
if(typeof(hammerElem) !== 'undefined'){
167165
hammerElem.on(swipeDirection, function() {
168166
BaseAppsApi.publish(attrs.id, 'close');
169167
});

0 commit comments

Comments
 (0)