chore: remove short imports (#7847)

This commit is contained in:
Alexander Vakrilov
2019-10-02 18:08:13 +03:00
committed by Manol Donev
parent ca7c46da3c
commit beffc5736a
5 changed files with 6 additions and 6 deletions

View File

@@ -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.

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -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';

View File

@@ -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);
// }