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,5 +1,5 @@
import {View} from "ui/core/view";
import * as utilsModule from "utils/utils";
import * as utils from "utils/utils";
export module ios {
export function getActualHeight(view: UIView): number {
@ -35,8 +35,6 @@ export module ios {
superViewRotationRadians = atan2f(superview.transform.b, superview.transform.a);
}
var utils: typeof utilsModule = require("utils/utils");
if (utils.ios.MajorVersion < 8 && utils.ios.isLandscape() && !superViewRotationRadians) {
// in iOS 7 when in landscape we switch width with height because on device they don't change even when rotated.
width = size.height;