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

@@ -4,14 +4,19 @@ import * as styleModule from "./style";
global.moduleMerge(common, exports);
var style: typeof styleModule;
function ensureStyle() {
if (!style) {
style = require("./style");
}
}
export module ios {
export function createBackgroundUIColor(view: viewModule.View, flip?: boolean): UIColor {
if(!view._nativeView){
return undefined;
}
var style: typeof styleModule = require("./style");
var background = <common.Background> view.style._getValue(style.backgroundInternalProperty);
if (!background || background.isEmpty()) {