From 6012ea04ba4473a7d224a1c61fa7af3b9507aae5 Mon Sep 17 00:00:00 2001 From: Hristo Hristov Date: Mon, 27 Feb 2017 17:10:14 +0200 Subject: [PATCH] Move global merge in application before any require. --- tns-core-modules/application/application-common.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tns-core-modules/application/application-common.ts b/tns-core-modules/application/application-common.ts index c68a32bd0..9d3c14ecf 100644 --- a/tns-core-modules/application/application-common.ts +++ b/tns-core-modules/application/application-common.ts @@ -1,13 +1,13 @@ require("globals"); +const events = new Observable(); +global.moduleMerge(events, exports); + import { NativeScriptError, UnhandledErrorEventData, iOSApplication, AndroidApplication, CssChangedEventData } from "application"; import { Observable, EventData } from "data/observable"; import { NavigationEntry } from "ui/frame"; import "../bundle-entry-points"; -const events = new Observable(); -global.moduleMerge(events, exports); - export { Observable }; export const launchEvent = "launch";