mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(style-scope): remove isFileOrResourcePath check
This commit is contained in:
@@ -4,17 +4,16 @@ import cssSelector = require("ui/styling/css-selector");
|
|||||||
import cssParser = require("css");
|
import cssParser = require("css");
|
||||||
import application = require("application");
|
import application = require("application");
|
||||||
import * as typesModule from "utils/types";
|
import * as typesModule from "utils/types";
|
||||||
import * as utilsModule from "utils/utils";
|
|
||||||
import * as fileSystemModule from "file-system";
|
import * as fileSystemModule from "file-system";
|
||||||
|
|
||||||
import keyframeAnimation = require("ui/animation/keyframe-animation");
|
import keyframeAnimation = require("ui/animation/keyframe-animation");
|
||||||
import cssAnimationParser = require("./css-animation-parser");
|
import cssAnimationParser = require("./css-animation-parser");
|
||||||
import observable = require("ui/core/dependency-observable");
|
import observable = require("ui/core/dependency-observable");
|
||||||
|
|
||||||
import {convertString} from "utils/utils";
|
import { convertString } from "utils/utils";
|
||||||
import {RuleSet, Node, SelectorsMap, SelectorCore, SelectorsMatch, ChangeMap } from "ui/styling/css-selector";
|
import { RuleSet, Node, SelectorsMap, SelectorCore, SelectorsMatch, ChangeMap } from "ui/styling/css-selector";
|
||||||
import {StyleProperty, withStyleProperty} from "ui/styling/style-property";
|
import { StyleProperty, withStyleProperty } from "ui/styling/style-property";
|
||||||
import {getSpecialPropertySetter} from "ui/builder/special-properties";
|
import { getSpecialPropertySetter } from "ui/builder/special-properties";
|
||||||
|
|
||||||
const animationsSymbol: symbol = Symbol("animations");
|
const animationsSymbol: symbol = Symbol("animations");
|
||||||
|
|
||||||
@@ -25,13 +24,6 @@ function ensureTypes() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var utils: typeof utilsModule;
|
|
||||||
function ensureUtils() {
|
|
||||||
if (!utils) {
|
|
||||||
utils = require("utils/utils");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var fs: typeof fileSystemModule;
|
var fs: typeof fileSystemModule;
|
||||||
function ensureFS() {
|
function ensureFS() {
|
||||||
if (!fs) {
|
if (!fs) {
|
||||||
@@ -144,9 +136,6 @@ export class StyleScope {
|
|||||||
let url = match && match[2];
|
let url = match && match[2];
|
||||||
|
|
||||||
if (!types.isNullOrUndefined(url)) {
|
if (!types.isNullOrUndefined(url)) {
|
||||||
ensureUtils();
|
|
||||||
|
|
||||||
if (utils.isFileOrResourcePath(url)) {
|
|
||||||
ensureFS();
|
ensureFS();
|
||||||
|
|
||||||
let appDirectory = fs.knownFolders.currentApp().path;
|
let appDirectory = fs.knownFolders.currentApp().path;
|
||||||
@@ -162,7 +151,6 @@ export class StyleScope {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return selectors;
|
return selectors;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user