mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Make moduleMerge a global function - this saves a total of 83 requires upon application loading.
This commit is contained in:
@ -6,7 +6,7 @@ import styleScope = require("ui/styling/style-scope");
|
||||
import observable = require("data/observable");
|
||||
|
||||
var events = new observable.Observable();
|
||||
require("utils/module-merge").merge(events, exports);
|
||||
global.moduleMerge(events, exports);
|
||||
|
||||
export var launchEvent = "launch";
|
||||
export var suspendEvent = "suspend";
|
||||
|
@ -4,9 +4,7 @@ import frame = require("ui/frame");
|
||||
import types = require("utils/types");
|
||||
import observable = require("data/observable");
|
||||
|
||||
// merge the exports of the application_common file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(appModule, exports);
|
||||
global.moduleMerge(appModule, exports);
|
||||
|
||||
export var mainModule: string;
|
||||
|
||||
|
@ -5,9 +5,7 @@ import types = require("utils/types");
|
||||
import view = require("ui/core/view");
|
||||
import definition = require("application");
|
||||
|
||||
// merge the exports of the application_common file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(appModule, exports);
|
||||
global.moduleMerge(appModule, exports);
|
||||
|
||||
export var mainModule: string;
|
||||
|
||||
|
@ -3,9 +3,7 @@ import app = require("application");
|
||||
import TKUnit = require("./TKUnit");
|
||||
import commonTests = require("./application-tests-common");
|
||||
|
||||
// merge the exports of the application_common file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(commonTests, exports);
|
||||
global.moduleMerge(commonTests, exports);
|
||||
|
||||
// <snippet module="application" title="application">
|
||||
// ### Using the Android-specific implementation
|
||||
|
@ -3,9 +3,7 @@ import app = require("application");
|
||||
import TKUnit = require("./TKUnit");
|
||||
import commonTests = require("./application-tests-common");
|
||||
|
||||
// merge the exports of the application_common file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(commonTests, exports);
|
||||
global.moduleMerge(commonTests, exports);
|
||||
|
||||
// <snippet module="application" title="application">
|
||||
// ### Adding a Notification Observer (iOS)
|
||||
|
@ -1,4 +1,2 @@
|
||||
import actionTestsCommon = require("./action-bar-tests-common");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(actionTestsCommon, exports);
|
||||
global.moduleMerge(actionTestsCommon, exports);
|
@ -6,8 +6,7 @@ import helper = require("../helper");
|
||||
import view = require("ui/core/view");
|
||||
import actionBar = require("ui/action-bar");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(actionTestsCommon, exports);
|
||||
global.moduleMerge(actionTestsCommon, exports);
|
||||
|
||||
export function test_NavBar_isVisible_when_MenuItems_areSet() {
|
||||
|
||||
|
@ -5,8 +5,7 @@ import PageTestCommon = require("./page-tests-common");
|
||||
import helper = require("../helper");
|
||||
import frame = require("ui/frame");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(PageTestCommon, exports);
|
||||
global.moduleMerge(PageTestCommon, exports);
|
||||
|
||||
export var test_NavigateToNewPage_WithAndroidCache = function () {
|
||||
var testPage: PageModule.Page;
|
||||
|
@ -4,8 +4,7 @@ import TKUnit = require("../../TKUnit");
|
||||
import LabelModule = require("ui/label");
|
||||
import helper = require("../helper");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(PageTestCommon, exports);
|
||||
global.moduleMerge(PageTestCommon, exports);
|
||||
|
||||
export function test_NavigateToNewPage_InnerControl() {
|
||||
var testPage: PageModule.Page;
|
||||
|
@ -12,9 +12,7 @@ import trace = require("trace");
|
||||
// enable the trace, it is disabled by default
|
||||
trace.enable();
|
||||
|
||||
// merge the exports of the view-tests-common file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(commonTests, exports);
|
||||
global.moduleMerge(commonTests, exports);
|
||||
|
||||
export var test_event_onAttached_IsRaised = function () {
|
||||
var listener = new Listener("_onAttached");
|
||||
|
@ -1,9 +1,7 @@
|
||||
import commonTests = require("./view-tests-common");
|
||||
import view = require("ui/core/view");
|
||||
|
||||
// merge the exports of the application_common file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(commonTests, exports);
|
||||
global.moduleMerge(commonTests, exports);
|
||||
|
||||
export function getNativeBorderWidth(v: view.View): number {
|
||||
return (<UIView>v.ios).layer.borderWidth;
|
||||
|
@ -2,8 +2,7 @@
|
||||
import common = require("connectivity/connectivity-common");
|
||||
import utils = require("utils/utils");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(common, exports);
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
var WIFI = "WIFI";
|
||||
var MOBILE = "MOBILE";
|
||||
|
@ -1,7 +1,6 @@
|
||||
import common = require("connectivity/connectivity-common");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(common, exports);
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
// Get Connection Type
|
||||
declare var sockaddr;
|
||||
|
@ -3,6 +3,17 @@ import timer = require("timer");
|
||||
import consoleModule = require("console");
|
||||
import xhr = require("xhr/xhr");
|
||||
import dialogs = require("ui/dialogs");
|
||||
var fetchModule = require("fetch");
|
||||
|
||||
// This method iterates all the keys in the source exports object and copies them to the destination exports one.
|
||||
// Note: the method will not check for naming collisions and will override any already existing entries in the destination exports.
|
||||
global.moduleMerge = function (sourceExports: any, destExports: any) {
|
||||
for (var key in sourceExports) {
|
||||
destExports[key] = sourceExports[key];
|
||||
}
|
||||
}
|
||||
|
||||
global.moduleMerge(fetchModule, global);
|
||||
|
||||
global.setTimeout = timer.setTimeout;
|
||||
global.clearTimeout = timer.clearTimeout;
|
||||
@ -18,9 +29,6 @@ global.XMLHttpRequest = xhr.XMLHttpRequest;
|
||||
global.FormData = xhr.FormData;
|
||||
global.alert = dialogs.alert;
|
||||
|
||||
var fetchModule = require("fetch");
|
||||
require("utils/module-merge").merge(fetchModule, global);
|
||||
|
||||
export function Deprecated(target: Object, key?: string | symbol, descriptor?: any) {
|
||||
if (descriptor) {
|
||||
var originalMethod = descriptor.value;
|
||||
|
@ -1,9 +1,7 @@
|
||||
import image = require("image-source");
|
||||
import httpRequest = require("http/http-request");
|
||||
|
||||
// merge the exports of the request file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(httpRequest, exports);
|
||||
global.moduleMerge(httpRequest, exports);
|
||||
|
||||
export function getString(arg: any): Promise<string> {
|
||||
return new Promise<string>((resolve, reject) => {
|
||||
|
@ -5,9 +5,7 @@ import common = require("image-source/image-source-common");
|
||||
import enums = require("ui/enums");
|
||||
import utils = require("utils/utils");
|
||||
|
||||
// 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 ImageSource implements definition.ImageSource {
|
||||
public android: android.graphics.Bitmap;
|
||||
|
@ -4,9 +4,7 @@ import fs = require("file-system");
|
||||
import common = require("image-source/image-source-common");
|
||||
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);
|
||||
|
||||
export class ImageSource implements definition.ImageSource {
|
||||
public android: android.graphics.Bitmap;
|
||||
|
@ -2,11 +2,6 @@
|
||||
//import locationManagerModule = require("location/location-manager");
|
||||
import defModule = require("location");
|
||||
|
||||
// merge the exports of the types module with the exports of this file
|
||||
//import merger = require("utils/module-merge");
|
||||
//declare var exports;
|
||||
//merger.merge(locationManagerModule, exports);
|
||||
|
||||
var defaultGetLocationTimeout = 20000;
|
||||
|
||||
export class Location implements defModule.Location {
|
||||
|
@ -3,9 +3,7 @@ import locationModule = require("location");
|
||||
import common = require("location/location-common");
|
||||
import utils = require("utils/utils");
|
||||
|
||||
import merger = require("utils/module-merge");
|
||||
declare var exports;
|
||||
merger.merge(common, exports);
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
export class LocationManager implements locationModule.LocationManager {
|
||||
get android(): locationModule.AndroidLocationManager {
|
||||
|
@ -2,9 +2,7 @@
|
||||
import locationModule = require("location");
|
||||
import common = require("location/location-common");
|
||||
|
||||
import merger = require("utils/module-merge");
|
||||
declare var exports;
|
||||
merger.merge(common, exports);
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
class LocationListenerImpl extends NSObject implements CLLocationManagerDelegate {
|
||||
public static ObjCProtocols = [CLLocationManagerDelegate];
|
||||
|
@ -1,8 +1,7 @@
|
||||
import formattedStringCommon = require("text/formatted-string-common");
|
||||
import spanModule = require("text/span");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(formattedStringCommon, exports);
|
||||
global.moduleMerge(formattedStringCommon, exports);
|
||||
|
||||
export class FormattedString extends formattedStringCommon.FormattedString {
|
||||
public createFormattedStringCore() {
|
||||
|
@ -1,8 +1,7 @@
|
||||
import formattedStringCommon = require("text/formatted-string-common");
|
||||
import spanModule = require("text/span");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(formattedStringCommon, exports);
|
||||
global.moduleMerge(formattedStringCommon, exports);
|
||||
|
||||
export class FormattedString extends formattedStringCommon.FormattedString {
|
||||
public createFormattedStringCore() {
|
||||
|
@ -3,8 +3,7 @@ import enums = require("ui/enums");
|
||||
import formattedString = require("text/formatted-string");
|
||||
import utils = require("utils/utils");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(spanCommon, exports);
|
||||
global.moduleMerge(spanCommon, exports);
|
||||
|
||||
export class Span extends spanCommon.Span {
|
||||
public updateSpanModifiers(parent: formattedString.FormattedString) {
|
||||
|
@ -2,8 +2,7 @@ import spanCommon = require("text/span-common");
|
||||
import enums = require("ui/enums");
|
||||
import formattedString = require("text/formatted-string");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(spanCommon, exports);
|
||||
global.moduleMerge(spanCommon, exports);
|
||||
|
||||
export class Span extends spanCommon.Span {
|
||||
public updateSpanModifiers(parent: formattedString.FormattedString) {
|
||||
|
@ -11,8 +11,7 @@ import dts = require("ui/action-bar");
|
||||
var ACTION_ITEM_ID_OFFSET = 1000;
|
||||
var API_LVL = android.os.Build.VERSION.SDK_INT;
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(common, exports);
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
export class ActionItem extends common.ActionItemBase implements dts.ActionItem {
|
||||
private _androidPosition: dts.AndroidActionItemSettings = { position: enums.AndroidActionItemPosition.actionBar };
|
||||
|
@ -6,8 +6,7 @@ import enums = require("ui/enums");
|
||||
import view = require("ui/core/view");
|
||||
import utils = require("utils/utils");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(common, exports);
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
export class ActionItem extends common.ActionItemBase implements dts.ActionItem {
|
||||
private _ios: dts.IOSActionItemSettings = { position: enums.IOSActionItemPosition.left };
|
||||
|
@ -17,9 +17,7 @@ function onBusyPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
||||
// register the setNativeValue callback
|
||||
(<proxy.PropertyMetadata>aiCommon.ActivityIndicator.busyProperty.metadata).onSetNativeValue = onBusyPropertyChanged;
|
||||
|
||||
// merge the exports of the common file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(aiCommon, exports);
|
||||
global.moduleMerge(aiCommon, exports);
|
||||
|
||||
export class ActivityIndicator extends aiCommon.ActivityIndicator {
|
||||
private _android: android.widget.ProgressBar;
|
||||
|
@ -18,9 +18,7 @@ function onBusyPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
||||
// register the setNativeValue callback
|
||||
(<proxy.PropertyMetadata>aiCommon.ActivityIndicator.busyProperty.metadata).onSetNativeValue = onBusyPropertyChanged;
|
||||
|
||||
// merge the exports of the common file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(aiCommon, exports);
|
||||
global.moduleMerge(aiCommon, exports);
|
||||
|
||||
export class ActivityIndicator extends aiCommon.ActivityIndicator {
|
||||
private _ios: UIActivityIndicatorView;
|
||||
|
@ -2,9 +2,7 @@
|
||||
import utils = require("utils/utils");
|
||||
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);
|
||||
|
||||
export class Button extends common.Button {
|
||||
private _android: android.widget.Button;
|
||||
|
@ -22,9 +22,7 @@ class TapHandlerImpl extends NSObject {
|
||||
};
|
||||
}
|
||||
|
||||
// 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 Button extends common.Button {
|
||||
private _ios: UIButton;
|
||||
|
@ -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;
|
||||
|
@ -63,9 +63,7 @@ function onMinDatePropertyChanged(data: dependencyObservable.PropertyChangeData)
|
||||
|
||||
(<proxy.PropertyMetadata>common.DatePicker.minDateProperty.metadata).onSetNativeValue = onMinDatePropertyChanged;
|
||||
|
||||
// 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 DatePicker extends common.DatePicker {
|
||||
private _android: android.widget.DatePicker;
|
||||
|
@ -59,9 +59,7 @@ function onMinDatePropertyChanged(data: dependencyObservable.PropertyChangeData)
|
||||
|
||||
(<proxy.PropertyMetadata>common.DatePicker.minDateProperty.metadata).onSetNativeValue = onMinDatePropertyChanged;
|
||||
|
||||
// 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 DatePicker extends common.DatePicker {
|
||||
private _ios: UIDatePicker;
|
||||
|
@ -3,13 +3,11 @@
|
||||
*/
|
||||
|
||||
import dialogs = require("ui/dialogs");
|
||||
import dialogs_common = require("ui/dialogs/dialogs-common");
|
||||
import dialogsCommon = require("ui/dialogs/dialogs-common");
|
||||
import appmodule = require("application");
|
||||
import types = require("utils/types");
|
||||
|
||||
// merge the exports of the request file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(dialogs_common, exports);
|
||||
global.moduleMerge(dialogsCommon, exports);
|
||||
|
||||
function createAlertDialog(options?: dialogs.DialogOptions): android.app.AlertDialog.Builder {
|
||||
var alert = new android.app.AlertDialog.Builder(appmodule.android.foregroundActivity);
|
||||
@ -56,7 +54,7 @@ function addButtonsToAlertDialog(alert: android.app.AlertDialog.Builder, options
|
||||
export function alert(arg: any): Promise<void> {
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
try {
|
||||
var options = types.isString(arg) ? { title: dialogs_common.ALERT, okButtonText: dialogs_common.OK, message: arg } : arg;
|
||||
var options = types.isString(arg) ? { title: dialogsCommon.ALERT, okButtonText: dialogsCommon.OK, message: arg } : arg;
|
||||
|
||||
var alert = createAlertDialog(options);
|
||||
|
||||
@ -78,7 +76,7 @@ export function alert(arg: any): Promise<void> {
|
||||
export function confirm(arg: any): Promise<boolean> {
|
||||
return new Promise<boolean>((resolve, reject) => {
|
||||
try {
|
||||
var options = types.isString(arg) ? { title: dialogs_common.CONFIRM, okButtonText: dialogs_common.OK, cancelButtonText: dialogs_common.CANCEL, message: arg } : arg;
|
||||
var options = types.isString(arg) ? { title: dialogsCommon.CONFIRM, okButtonText: dialogsCommon.OK, cancelButtonText: dialogsCommon.CANCEL, message: arg } : arg;
|
||||
var alert = createAlertDialog(options);
|
||||
|
||||
addButtonsToAlertDialog(alert, options, function (result) { resolve(result); });
|
||||
@ -95,9 +93,9 @@ export function prompt(arg: any): Promise<dialogs.PromptResult> {
|
||||
var options: dialogs.PromptOptions;
|
||||
|
||||
var defaultOptions = {
|
||||
title: dialogs_common.PROMPT,
|
||||
okButtonText: dialogs_common.OK,
|
||||
cancelButtonText: dialogs_common.CANCEL,
|
||||
title: dialogsCommon.PROMPT,
|
||||
okButtonText: dialogsCommon.OK,
|
||||
cancelButtonText: dialogsCommon.CANCEL,
|
||||
inputType: dialogs.inputType.text,
|
||||
};
|
||||
|
||||
@ -146,7 +144,7 @@ export function prompt(arg: any): Promise<dialogs.PromptResult> {
|
||||
export function login(arg: any): Promise<dialogs.LoginResult> {
|
||||
var options: dialogs.LoginOptions;
|
||||
|
||||
var defaultOptions = { title: dialogs_common.LOGIN, okButtonText: dialogs_common.OK, cancelButtonText: dialogs_common.CANCEL };
|
||||
var defaultOptions = { title: dialogsCommon.LOGIN, okButtonText: dialogsCommon.OK, cancelButtonText: dialogsCommon.CANCEL };
|
||||
|
||||
if (arguments.length === 1) {
|
||||
if (types.isString(arguments[0])) {
|
||||
@ -211,7 +209,7 @@ export function action(arg: any): Promise<string> {
|
||||
|
||||
var options: dialogs.ActionOptions;
|
||||
|
||||
var defaultOptions = { cancelButtonText: dialogs_common.CANCEL };
|
||||
var defaultOptions = { cancelButtonText: dialogsCommon.CANCEL };
|
||||
|
||||
if (arguments.length === 1) {
|
||||
if (types.isString(arguments[0])) {
|
||||
|
@ -3,14 +3,12 @@
|
||||
*/
|
||||
|
||||
import dialogs = require("ui/dialogs");
|
||||
import dialogs_common = require("ui/dialogs/dialogs-common");
|
||||
import dialogsCommon = require("ui/dialogs/dialogs-common");
|
||||
import types = require("utils/types");
|
||||
import utils = require("utils/utils");
|
||||
import frame = require("ui/frame");
|
||||
|
||||
// merge the exports of the request file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(dialogs_common, exports);
|
||||
global.moduleMerge(dialogsCommon, exports);
|
||||
|
||||
class UIAlertViewDelegateImpl extends NSObject implements UIAlertViewDelegate {
|
||||
public static ObjCProtocols = [UIAlertViewDelegate];
|
||||
@ -140,7 +138,7 @@ function addButtonsToAlertController(alertController: UIAlertController, options
|
||||
export function alert(arg: any): Promise<void> {
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
try {
|
||||
var options = types.isString(arg) ? { title: dialogs_common.ALERT, okButtonText: dialogs_common.OK, message: arg } : arg;
|
||||
var options = types.isString(arg) ? { title: dialogsCommon.ALERT, okButtonText: dialogsCommon.OK, message: arg } : arg;
|
||||
|
||||
if (utils.ios.MajorVersion < 8) {
|
||||
var alert = createUIAlertView(options);
|
||||
@ -175,7 +173,7 @@ export function alert(arg: any): Promise<void> {
|
||||
export function confirm(arg: any): Promise<boolean> {
|
||||
return new Promise<boolean>((resolve, reject) => {
|
||||
try {
|
||||
var options = types.isString(arg) ? { title: dialogs_common.CONFIRM, okButtonText: dialogs_common.OK, cancelButtonText: dialogs_common.CANCEL, message: arg } : arg;
|
||||
var options = types.isString(arg) ? { title: dialogsCommon.CONFIRM, okButtonText: dialogsCommon.OK, cancelButtonText: dialogsCommon.CANCEL, message: arg } : arg;
|
||||
|
||||
if (utils.ios.MajorVersion < 8) {
|
||||
var alert = createUIAlertView(options);
|
||||
@ -211,9 +209,9 @@ export function prompt(arg: any): Promise<dialogs.PromptResult> {
|
||||
var options: dialogs.PromptOptions;
|
||||
|
||||
var defaultOptions = {
|
||||
title: dialogs_common.PROMPT,
|
||||
okButtonText: dialogs_common.OK,
|
||||
cancelButtonText: dialogs_common.CANCEL,
|
||||
title: dialogsCommon.PROMPT,
|
||||
okButtonText: dialogsCommon.OK,
|
||||
cancelButtonText: dialogsCommon.CANCEL,
|
||||
inputType: dialogs.inputType.text,
|
||||
};
|
||||
|
||||
@ -287,7 +285,7 @@ export function prompt(arg: any): Promise<dialogs.PromptResult> {
|
||||
export function login(arg: any): Promise<dialogs.LoginResult> {
|
||||
var options: dialogs.LoginOptions;
|
||||
|
||||
var defaultOptions = { title: dialogs_common.LOGIN, okButtonText: dialogs_common.OK, cancelButtonText: dialogs_common.CANCEL };
|
||||
var defaultOptions = { title: dialogsCommon.LOGIN, okButtonText: dialogsCommon.OK, cancelButtonText: dialogsCommon.CANCEL };
|
||||
|
||||
if (arguments.length === 1) {
|
||||
if (types.isString(arguments[0])) {
|
||||
@ -389,7 +387,7 @@ function showUIAlertController(alertController: UIAlertController) {
|
||||
export function action(arg: any): Promise<string> {
|
||||
var options: dialogs.ActionOptions;
|
||||
|
||||
var defaultOptions = { cancelButtonText: dialogs_common.CANCEL };
|
||||
var defaultOptions = { cancelButtonText: dialogsCommon.CANCEL };
|
||||
|
||||
if (arguments.length === 1) {
|
||||
if (types.isString(arguments[0])) {
|
||||
|
@ -7,8 +7,7 @@ import utils = require("utils/utils");
|
||||
import view = require("ui/core/view");
|
||||
import application = require("application");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(frameCommon, exports);
|
||||
global.moduleMerge(frameCommon, exports);
|
||||
|
||||
var TAG = "_fragmentTag";
|
||||
var OWNER = "_owner";
|
||||
|
@ -7,8 +7,7 @@ import utils = require("utils/utils");
|
||||
import view = require("ui/core/view");
|
||||
import types = require("utils/types");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(frameCommon, exports);
|
||||
global.moduleMerge(frameCommon, exports);
|
||||
|
||||
var ENTRY = "_entry";
|
||||
|
||||
|
@ -4,9 +4,7 @@ import observable = require("data/observable");
|
||||
import view = require("ui/core/view");
|
||||
import trace = require("trace");
|
||||
|
||||
// merge the exports of the request file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(common, exports);
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
var SWIPE_THRESHOLD = 100;
|
||||
var SWIPE_VELOCITY_THRESHOLD = 100;
|
||||
|
@ -4,9 +4,7 @@ import view = require("ui/core/view");
|
||||
import observable = require("data/observable");
|
||||
import trace = require("trace");
|
||||
|
||||
// merge the exports of the request file with the exports of this file
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(common, exports);
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
class UIGestureRecognizerImpl extends NSObject {
|
||||
static new(): UIGestureRecognizerImpl {
|
||||
|
@ -19,9 +19,7 @@ function onHtmlPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
||||
// register the setNativeValue callback
|
||||
(<proxy.PropertyMetadata>common.HtmlView.htmlProperty.metadata).onSetNativeValue = onHtmlPropertyChanged;
|
||||
|
||||
// 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 HtmlView extends common.HtmlView {
|
||||
private _android: android.widget.TextView;
|
||||
|
@ -24,9 +24,7 @@ function onHtmlPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
||||
// register the setNativeValue callback
|
||||
(<proxy.PropertyMetadata>common.HtmlView.htmlProperty.metadata).onSetNativeValue = onHtmlPropertyChanged;
|
||||
|
||||
// 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 HtmlView extends common.HtmlView {
|
||||
private _ios: UILabel;
|
||||
|
@ -3,9 +3,7 @@ import dependencyObservable = require("ui/core/dependency-observable");
|
||||
import proxy = require("ui/core/proxy");
|
||||
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(imageCommon, exports);
|
||||
global.moduleMerge(imageCommon, exports);
|
||||
|
||||
function onStretchPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
||||
var image = <Image>data.object;
|
||||
|
@ -4,9 +4,7 @@ import proxy = require("ui/core/proxy");
|
||||
import definition = require("ui/image");
|
||||
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(imageCommon, exports);
|
||||
global.moduleMerge(imageCommon, exports);
|
||||
|
||||
function onStretchPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
||||
var image = <Image>data.object;
|
||||
|
@ -21,9 +21,7 @@ function onTextWrapPropertyChanged(data: dependencyObservable.PropertyChangeData
|
||||
// register the setNativeValue callback
|
||||
(<proxy.PropertyMetadata>common.Label.textWrapProperty.metadata).onSetNativeValue = onTextWrapPropertyChanged;
|
||||
|
||||
// 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 Label extends common.Label {
|
||||
private _android: android.widget.TextView;
|
||||
|
@ -22,9 +22,7 @@ function onTextWrapPropertyChanged(data: dependencyObservable.PropertyChangeData
|
||||
// register the setNativeValue callback
|
||||
(<proxy.PropertyMetadata>common.Label.textWrapProperty.metadata).onSetNativeValue = onTextWrapPropertyChanged;
|
||||
|
||||
// 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 Label extends common.Label {
|
||||
private _ios: UILabel;
|
||||
|
@ -2,9 +2,7 @@
|
||||
import dependencyObservable = require("ui/core/dependency-observable");
|
||||
import types = require("utils/types");
|
||||
|
||||
// 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 ListPicker extends common.ListPicker {
|
||||
private _android: android.widget.NumberPicker;
|
||||
|
@ -2,9 +2,7 @@
|
||||
import dependencyObservable = require("ui/core/dependency-observable");
|
||||
import types = require("utils/types");
|
||||
|
||||
// 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 ListPicker extends common.ListPicker {
|
||||
private _ios: UIPickerView;
|
||||
|
@ -13,9 +13,7 @@ var LOADMOREITEMS = common.ListView.loadMoreItemsEvent;
|
||||
var ITEMTAP = common.ListView.itemTapEvent;
|
||||
var REALIZED_INDEX = "realizedIndex";
|
||||
|
||||
// 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 onSeparatorColorPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
||||
var bar = <ListView>data.object;
|
||||
|
@ -13,9 +13,7 @@ var LOADMOREITEMS = common.ListView.loadMoreItemsEvent;
|
||||
var ITEMTAP = common.ListView.itemTapEvent;
|
||||
var DEFAULT_HEIGHT = 80;
|
||||
|
||||
// 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 infinity = utils.layout.makeMeasureSpec(0, utils.layout.UNSPECIFIED);
|
||||
|
||||
|
@ -3,8 +3,7 @@ import definition = require("ui/page");
|
||||
import trace = require("trace");
|
||||
import color = require("color");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(pageCommon, exports);
|
||||
global.moduleMerge(pageCommon, exports);
|
||||
|
||||
class DialogFragmentClass extends android.app.DialogFragment {
|
||||
private _owner: Page;
|
||||
|
@ -5,8 +5,7 @@ import trace = require("trace");
|
||||
import utils = require("utils/utils");
|
||||
import types = require("utils/types");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(pageCommon, exports);
|
||||
global.moduleMerge(pageCommon, exports);
|
||||
|
||||
class UIViewControllerImpl extends UIViewController {
|
||||
static new(): UIViewControllerImpl {
|
||||
|
@ -1,9 +1,7 @@
|
||||
import definition = require("ui/placeholder");
|
||||
import common = require("ui/placeholder/placeholder-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 class Placeholder extends common.Placeholder {
|
||||
private _android: android.view.View;
|
||||
|
@ -1,9 +1,7 @@
|
||||
import definition = require("ui/placeholder");
|
||||
import common = require("ui/placeholder/placeholder-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 class Placeholder extends common.Placeholder {
|
||||
private _ios: UIView;
|
||||
|
@ -24,9 +24,7 @@ function onMaxValuePropertyChanged(data: dependencyObservable.PropertyChangeData
|
||||
(<proxy.PropertyMetadata>common.Progress.valueProperty.metadata).onSetNativeValue = onValuePropertyChanged;
|
||||
(<proxy.PropertyMetadata>common.Progress.maxValueProperty.metadata).onSetNativeValue = onMaxValuePropertyChanged;
|
||||
|
||||
// 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 Progress extends common.Progress {
|
||||
private _android: android.widget.ProgressBar;
|
||||
|
@ -16,9 +16,7 @@ function onMaxValuePropertyChanged(data: dependencyObservable.PropertyChangeData
|
||||
(<proxy.PropertyMetadata>common.Progress.valueProperty.metadata).onSetNativeValue = onValuePropertyChanged;
|
||||
(<proxy.PropertyMetadata>common.Progress.maxValueProperty.metadata).onSetNativeValue = onMaxValuePropertyChanged;
|
||||
|
||||
// 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 Progress extends common.Progress {
|
||||
private _ios: UIProgressView;
|
||||
|
@ -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";
|
||||
|
@ -5,9 +5,7 @@ import common = require("ui/scroll-view/scroll-view-common");
|
||||
import enums = require("ui/enums");
|
||||
import utils = require("utils/utils");
|
||||
|
||||
// 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 ScrollView extends contentView.ContentView implements definition.ScrollView {
|
||||
private _scroll: UIScrollView;
|
||||
|
@ -90,9 +90,7 @@ function _changeSearchViewHintColor(bar: android.widget.SearchView, color: numbe
|
||||
}
|
||||
}
|
||||
|
||||
// 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 SearchBar extends common.SearchBar {
|
||||
private _android: android.widget.SearchView;
|
||||
|
@ -60,9 +60,7 @@ function getUITextField(bar: UISearchBar): UITextField {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
// 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 UISearchBarDelegateImpl extends NSObject implements UISearchBarDelegate {
|
||||
public static ObjCProtocols = [UISearchBarDelegate];
|
||||
|
@ -4,9 +4,7 @@ import dependencyObservable = require("ui/core/dependency-observable");
|
||||
import proxy = require("ui/core/proxy");
|
||||
import types = require("utils/types");
|
||||
|
||||
// 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 onSelectedIndexPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
||||
var view = <SegmentedBar>data.object;
|
||||
|
@ -5,9 +5,7 @@ import proxy = require("ui/core/proxy");
|
||||
import types = require("utils/types");
|
||||
import color = require("color");
|
||||
|
||||
// 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 onSelectedIndexPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
||||
var view = <SegmentedBar>data.object;
|
||||
|
@ -35,9 +35,7 @@ function onMaxValuePropertyChanged(data: dependencyObservable.PropertyChangeData
|
||||
(<proxy.PropertyMetadata>common.Slider.minValueProperty.metadata).onSetNativeValue = onMinValuePropertyChanged;
|
||||
(<proxy.PropertyMetadata>common.Slider.maxValueProperty.metadata).onSetNativeValue = onMaxValuePropertyChanged;
|
||||
|
||||
// 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 Slider extends common.Slider {
|
||||
private _supressNativeValue: boolean;
|
||||
|
@ -22,9 +22,7 @@ function onMaxValuePropertyChanged(data: dependencyObservable.PropertyChangeData
|
||||
(<proxy.PropertyMetadata>common.Slider.minValueProperty.metadata).onSetNativeValue = onMinValuePropertyChanged;
|
||||
(<proxy.PropertyMetadata>common.Slider.maxValueProperty.metadata).onSetNativeValue = onMaxValuePropertyChanged;
|
||||
|
||||
// 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 SliderChangeHandlerImpl extends NSObject {
|
||||
static new(): SliderChangeHandlerImpl {
|
||||
|
@ -2,8 +2,7 @@ import utils = require("utils/utils");
|
||||
import common = require("ui/styling/background-common");
|
||||
import dts = require("ui/styling/background");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(common, exports);
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
// We are using "ad" here to avoid namespace collision with the global android object
|
||||
export module ad {
|
||||
|
@ -2,8 +2,7 @@ import viewModule = require("ui/core/view");
|
||||
import style = require("ui/styling/style");
|
||||
import common = require("ui/styling/background-common");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(common, exports);
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
export module ios {
|
||||
export function createBackgroundUIColor(view: viewModule.View): UIColor {
|
||||
|
@ -10,9 +10,7 @@ import styleModule = require("ui/styling/style");
|
||||
import font = require("ui/styling/font");
|
||||
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(stylersCommon, exports);
|
||||
global.moduleMerge(stylersCommon, exports);
|
||||
|
||||
var _defaultBackgrounds = new Map<string, android.graphics.drawable.Drawable>();
|
||||
function onBackgroundOrBorderPropertyChanged(v: view.View) {
|
||||
|
@ -6,9 +6,7 @@ import enums = require("ui/enums");
|
||||
import font = require("ui/styling/font");
|
||||
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(stylersCommon, exports);
|
||||
global.moduleMerge(stylersCommon, exports);
|
||||
|
||||
interface TextUIView {
|
||||
font: UIFont;
|
||||
|
@ -14,9 +14,7 @@ function onCheckedPropertyChanged(data: dependencyObservable.PropertyChangeData)
|
||||
// register the setNativeValue callbacks
|
||||
(<proxy.PropertyMetadata>common.Switch.checkedProperty.metadata).onSetNativeValue = onCheckedPropertyChanged;
|
||||
|
||||
// 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 Switch extends common.Switch {
|
||||
private _android: android.widget.Switch;
|
||||
|
@ -10,9 +10,7 @@ function onCheckedPropertyChanged(data: dependencyObservable.PropertyChangeData)
|
||||
// register the setNativeValue callbacks
|
||||
(<proxy.PropertyMetadata>common.Switch.checkedProperty.metadata).onSetNativeValue = onCheckedPropertyChanged;
|
||||
|
||||
// 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 SwitchChangeHandlerImpl extends NSObject {
|
||||
static new(): SwitchChangeHandlerImpl {
|
||||
|
@ -11,9 +11,7 @@ import page = require("ui/page");
|
||||
var VIEWS_STATES = "_viewStates";
|
||||
var RESOURCE_PREFIX = "res://";
|
||||
|
||||
// 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 ViewPagerClass extends android.support.v4.view.ViewPager {
|
||||
private owner: TabView;
|
||||
|
@ -8,9 +8,7 @@ import view = require("ui/core/view");
|
||||
import imageSource = require("image-source");
|
||||
import types = require("utils/types");
|
||||
|
||||
// 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 UITabBarControllerImpl extends UITabBarController {
|
||||
static new(): UITabBarControllerImpl {
|
||||
|
@ -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];
|
||||
|
@ -2,9 +2,7 @@
|
||||
import textBase = require("ui/text-base");
|
||||
import editableTextBase = require("ui/editable-text-base");
|
||||
|
||||
// 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 TextView extends editableTextBase.EditableTextBase implements definition.TextView {
|
||||
constructor(options?: editableTextBase.Options) {
|
||||
|
@ -1,8 +1,6 @@
|
||||
import common = require("ui/text-view/text-view-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 class TextView extends common.TextView {
|
||||
public _configureEditText() {
|
||||
|
@ -16,9 +16,7 @@ function onMinutePropertyChanged(data: dependencyObservable.PropertyChangeData)
|
||||
|
||||
(<proxy.PropertyMetadata>common.TimePicker.minuteProperty.metadata).onSetNativeValue = onMinutePropertyChanged;
|
||||
|
||||
// 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 TimePicker extends common.TimePicker {
|
||||
private _android: android.widget.TimePicker;
|
||||
|
@ -26,9 +26,7 @@ function onMinutePropertyChanged(data: dependencyObservable.PropertyChangeData)
|
||||
|
||||
(<proxy.PropertyMetadata>common.TimePicker.minuteProperty.metadata).onSetNativeValue = onMinutePropertyChanged;
|
||||
|
||||
// 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 TimePicker extends common.TimePicker {
|
||||
private _ios: UIDatePicker;
|
||||
|
@ -3,8 +3,7 @@ import trace = require("trace");
|
||||
import utils = require("utils/utils");
|
||||
import fs = require("file-system");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(common, exports);
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
class WebViewClientClass extends android.webkit.WebViewClient {
|
||||
private _view: common.WebView;
|
||||
|
@ -3,8 +3,7 @@ import trace = require("trace");
|
||||
import utils = require("utils/utils");
|
||||
import fs = require("file-system");
|
||||
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(common, exports);
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
class UIWebViewDelegateImpl extends NSObject implements UIWebViewDelegate {
|
||||
public static ObjCProtocols = [UIWebViewDelegate];
|
||||
|
@ -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