fix(style-scope): remove isFileOrResourcePath check

This commit is contained in:
sis0k0
2016-11-14 14:32:25 +02:00
parent 9483b54f92
commit 0e41f819ce

View File

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