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 dependencyObservable = require("ui/core/dependency-observable");
|
||||
import proxy = require("ui/core/proxy");
|
||||
import gestures = require("ui/gestures");
|
||||
|
||||
// merge the exports of the common file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(viewCommon, exports);
|
||||
global.moduleMerge(viewCommon, exports);
|
||||
|
||||
var ANDROID = "_android";
|
||||
var NATIVE_VIEW = "_nativeView";
|
||||
|
||||
@@ -5,9 +5,7 @@ import dependencyObservable = require("ui/core/dependency-observable");
|
||||
import proxy = require("ui/core/proxy");
|
||||
import background = require("ui/styling/background");
|
||||
|
||||
// merge the exports of the common file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(viewCommon, exports);
|
||||
global.moduleMerge(viewCommon, exports);
|
||||
|
||||
function onIdPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
||||
var view = <View>data.object;
|
||||
|
||||
Reference in New Issue
Block a user