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

Commit 290c72a

Browse files
Ardeshir81andrewseguin
Ardeshir81
authored andcommitted
fix($mdGesture):reAdd isAndroid & isIos to $get (#11044)
This was removed as part of this commit : #9803 I think it was observed that isAndroid and isIos is not used anywhere else in material, so it was removed. But the normal usages of $mdGesture would be broken after this commit , I mean a developer can't simply inject `$mdGesture` and use it as : if($mdGesture.isAndroid):{ this.suggestDownloadOurAndroidApp() }
1 parent eecc976 commit 290c72a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/services/gesture/gesture.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ function MdGesture($$MdGestureHandler, $$rAF, $timeout) {
8787
var self = {
8888
handler: addHandler,
8989
register: register,
90+
isAndroid: isAndroid,
91+
isIos: isIos,
9092
// On mobile w/out jQuery, we normally intercept clicks. Should we skip that?
9193
isHijackingClicks: (isIos || isAndroid) && !hasJQuery && !forceSkipClickHijack
9294
};

0 commit comments

Comments
 (0)