Do not use lazy requires where not needed.

This commit is contained in:
atanasovg
2016-01-25 16:33:18 +02:00
parent 62d85b0dc0
commit 56f1aaa795
63 changed files with 581 additions and 237 deletions

View File

@ -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) {