mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: remove short imports (#7847)
This commit is contained in:
committed by
Manol Donev
parent
ca7c46da3c
commit
beffc5736a
@@ -1,5 +1,5 @@
|
||||
if (global.TNS_WEBPACK) {
|
||||
require("globals");
|
||||
require("./globals");
|
||||
|
||||
// Register "dynamically" loaded module that need to be resolved by the
|
||||
// XML/component builders.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import * as definition from ".";
|
||||
import * as types from "../utils/types";
|
||||
import * as knownColors from "./known-colors";
|
||||
import { convertHSLToRGBColor } from "tns-core-modules/css/parser";
|
||||
import { convertHSLToRGBColor } from "../css/parser";
|
||||
|
||||
const SHARP = "#";
|
||||
const HEX_REGEX = /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
exports.FormData = global.FormData;
|
||||
|
||||
if (!exports.XMLHttpRequest) {
|
||||
var xhr = require("xhr");
|
||||
var xhr = require("../xhr");
|
||||
exports.XMLHttpRequest = xhr.XMLHttpRequest;
|
||||
exports.FormData = xhr.FormData;
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// Code distributed by Google as part of the polymer project is also
|
||||
// subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||
|
||||
var esprima = require("js-libs/esprima").esprima;
|
||||
var Path = require("js-libs/polymer-expressions/path-parser").Path;
|
||||
var esprima = require("../esprima").esprima;
|
||||
var Path = require("./path-parser").Path;
|
||||
|
||||
(function (global) {
|
||||
'use strict';
|
||||
|
||||
@@ -190,7 +190,7 @@ export class FrameBase extends CustomLayoutView implements FrameDefinition {
|
||||
// Attempts to implement https://github.com/NativeScript/NativeScript/issues/1311
|
||||
// if (page["isBiOrientational"] && entry.moduleName && !this._subscribedToOrientationChangedEvent){
|
||||
// this._subscribedToOrientationChangedEvent = true;
|
||||
// let app = require("application");
|
||||
// let app = require("../../application");
|
||||
// if (trace.enabled) {
|
||||
// trace.write(`${this} subscribed to orientationChangedEvent.`, trace.categories.Navigation);
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user