forked from wessberg/scroll-behavior-polyfill
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Raphael Fischer
authored and
Raphael Fischer
committed
Feb 10, 2021
1 parent
b8f616e
commit 70914e5
Showing
2 changed files
with
2 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
import {UNSUPPORTED_ENVIRONMENT} from "../../support/unsupported-environment"; | ||
|
||
const s = Object.getOwnPropertyDescriptor(Element.prototype, "scrollTop"); | ||
export const ELEMENT_ORIGINAL_SCROLL_TOP_SET_DESCRIPTOR = (UNSUPPORTED_ENVIRONMENT || typeof s !== "undefined") | ||
? undefined | ||
: s!.set!; | ||
export const ELEMENT_ORIGINAL_SCROLL_TOP_SET_DESCRIPTOR = UNSUPPORTED_ENVIRONMENT || typeof s === "undefined" ? undefined : s!.set!; | ||
This comment has been minimized.
Sorry, something went wrong. |
undefined maybe cause NPE. please consider NPE while calling "ELEMENT_ORIGINAL_SCROLL_TOP_SET_DESCRIPTOR" method.