mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Do not use lazy requires where not needed.
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import view = require("ui/core/view");
|
||||
import observable = require("ui/core/dependency-observable");
|
||||
import cssParser = require("css");
|
||||
import * as traceModule from "trace";
|
||||
import * as stylePropertyModule from "ui/styling/style-property";
|
||||
import * as trace from "trace";
|
||||
import * as styleProperty from "ui/styling/style-property";
|
||||
|
||||
var ID_SPECIFICITY = 10000;
|
||||
var CLASS_SPECIFICITY = 100;
|
||||
@ -39,8 +39,6 @@ export class CssSelector {
|
||||
view.style._setValue(property, value, observable.ValueSource.Css);
|
||||
}
|
||||
catch (ex) {
|
||||
var trace : typeof traceModule = require("trace");
|
||||
|
||||
trace.write("Error setting property: " + property.name + " view: " + view + " value: " + value + " " + ex, trace.categories.Style, trace.messageType.error);
|
||||
}
|
||||
});
|
||||
@ -52,8 +50,6 @@ export class CssSelector {
|
||||
let name = declaration.property;
|
||||
let resolvedValue = declaration.value;
|
||||
|
||||
var styleProperty: typeof stylePropertyModule = require("ui/styling/style-property");
|
||||
|
||||
let property = styleProperty.getPropertyByCssName(name);
|
||||
|
||||
if (property) {
|
||||
|
Reference in New Issue
Block a user