mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
XMLHttpRequest separated from http module
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import types = require("utils/types");
|
||||
import timer = require("timer");
|
||||
import consoleModule = require("console");
|
||||
import http = require("http");
|
||||
import xhr = require("xhr/xhr");
|
||||
import dialogs = require("ui/dialogs");
|
||||
|
||||
global.setTimeout = timer.setTimeout;
|
||||
@@ -14,7 +14,7 @@ if (types.isUndefined(global.NSObject)) {
|
||||
global.console = new consoleModule.Console();
|
||||
}
|
||||
|
||||
global.XMLHttpRequest = (<any>http).XMLHttpRequest;
|
||||
global.XMLHttpRequest = xhr.XMLHttpRequest;
|
||||
global.alert = dialogs.alert;
|
||||
|
||||
export function Deprecated(target: Object, key?: string | symbol, descriptor?: any) {
|
||||
|
||||
Reference in New Issue
Block a user