mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
refactor(dev-tools): replace topmost() usage (#8013)
This commit is contained in:
@@ -4,9 +4,6 @@ import { getNodeById } from "./dom-node";
|
||||
import { ViewBase } from "../ui/core/view-base";
|
||||
import { mainThreadify } from "../utils/utils";
|
||||
|
||||
// Use lazy requires for core modules
|
||||
const frameTopmost = () => require("../ui/frame").topmost();
|
||||
|
||||
let unsetValue;
|
||||
function unsetViewValue(view, name) {
|
||||
if (!unsetValue) {
|
||||
@@ -27,7 +24,7 @@ function getViewById(nodeId: number): ViewBase {
|
||||
}
|
||||
|
||||
export function getDocument() {
|
||||
const topMostFrame = frameTopmost();
|
||||
const topMostFrame = require("../ui/frame").Frame.topmost();
|
||||
if (!topMostFrame) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user