Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
OMNICOM\rfischer committed Feb 9, 2021
1 parent 0e4973c commit b8f616e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/original/element/scroll-left.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import {UNSUPPORTED_ENVIRONMENT} from "../../support/unsupported-environment";

export const ELEMENT_ORIGINAL_SCROLL_LEFT_SET_DESCRIPTOR = UNSUPPORTED_ENVIRONMENT
const s = Object.getOwnPropertyDescriptor(Element.prototype, "scrollTop");

export const ELEMENT_ORIGINAL_SCROLL_LEFT_SET_DESCRIPTOR = (UNSUPPORTED_ENVIRONMENT || typeof s !== "undefined")
? undefined
: Object.getOwnPropertyDescriptor(Element.prototype, "scrollLeft")!.set!;
: s!.set!;
5 changes: 3 additions & 2 deletions src/original/element/scroll-top.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {UNSUPPORTED_ENVIRONMENT} from "../../support/unsupported-environment";

export const ELEMENT_ORIGINAL_SCROLL_TOP_SET_DESCRIPTOR = UNSUPPORTED_ENVIRONMENT
const s = Object.getOwnPropertyDescriptor(Element.prototype, "scrollTop");
export const ELEMENT_ORIGINAL_SCROLL_TOP_SET_DESCRIPTOR = (UNSUPPORTED_ENVIRONMENT || typeof s !== "undefined")
? undefined
: Object.getOwnPropertyDescriptor(Element.prototype, "scrollTop")!.set!;
: s!.set!;

0 comments on commit b8f616e

Please sign in to comment.