mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Make moduleMerge a global function - this saves a total of 83 requires upon application loading.
This commit is contained in:
@@ -6,9 +6,7 @@ import common = require("ui/scroll-view/scroll-view-common");
|
||||
import utils = require("utils/utils");
|
||||
import enums = require("ui/enums");
|
||||
|
||||
// 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);
|
||||
|
||||
var OWNER = "_owner";
|
||||
var STATE = "_scrollViewState";
|
||||
|
||||
Reference in New Issue
Block a user