mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Make moduleMerge a global function - this saves a total of 83 requires upon application loading.
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
import common = require("utils/utils-common");
|
||||
|
||||
// merge the exports of the common file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(common, exports);
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
export module layout {
|
||||
var density = -1;
|
||||
|
@ -1,11 +1,8 @@
|
||||
import common = require("utils/utils-common");
|
||||
import colorModule = require("color");
|
||||
import view = require("ui/core/view");
|
||||
//import trace = require("trace");
|
||||
|
||||
// merge the exports of the common file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(common, exports);
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
function isOrientationLandscape(orientation: number) {
|
||||
return orientation === UIDeviceOrientation.UIDeviceOrientationLandscapeLeft || orientation === UIDeviceOrientation.UIDeviceOrientationLandscapeRight;
|
||||
|
Reference in New Issue
Block a user