mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Do not use lazy requires where not needed.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user