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:
@@ -10,9 +10,7 @@ export var secureProperty = new dependencyObservable.Property(
|
||||
new proxy.PropertyMetadata(false)
|
||||
);
|
||||
|
||||
// merge the exports of the textBase file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(textBase, exports);
|
||||
global.moduleMerge(textBase, exports);
|
||||
|
||||
export class TextField extends editableTextBase.EditableTextBase implements definition.TextField {
|
||||
constructor(options?: definition.Options) {
|
||||
|
||||
@@ -40,9 +40,7 @@ function onSecurePropertyChanged(data: dependencyObservable.PropertyChangeData)
|
||||
// register the setNativeValue callbacks
|
||||
(<proxy.PropertyMetadata>common.secureProperty.metadata).onSetNativeValue = onSecurePropertyChanged;
|
||||
|
||||
// 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 class TextField extends common.TextField {
|
||||
public _configureEditText() {
|
||||
|
||||
@@ -11,9 +11,7 @@ function onSecurePropertyChanged(data: dependencyObservable.PropertyChangeData)
|
||||
|
||||
(<proxy.PropertyMetadata>common.secureProperty.metadata).onSetNativeValue = onSecurePropertyChanged;
|
||||
|
||||
// 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);
|
||||
|
||||
class UITextFieldDelegateImpl extends NSObject implements UITextFieldDelegate {
|
||||
public static ObjCProtocols = [UITextFieldDelegate];
|
||||
|
||||
Reference in New Issue
Block a user