mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Added merge_module function. Added text module (currently having encoding only). Updated the FileSystem File object with readText, writeText methods (removed the FileReader, FileWriter classes).
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import app_common_module = require("Application/application_common");
|
||||
var currentApp = app_common_module.Application.current;
|
||||
|
||||
// merge the exports of the application_common file with the exports of this file
|
||||
declare var exports;
|
||||
exports.TargetOS = app_common_module.TargetOS;
|
||||
exports.Application = app_common_module.Application;
|
||||
require("Utils/module_merge").merge(app_common_module, exports);
|
||||
|
||||
var currentApp = app_common_module.Application.current;
|
||||
var callbacks = android.app.Application.ActivityLifecycleCallbacks;
|
||||
|
||||
var initEvents = function () {
|
||||
|
||||
@@ -21,12 +21,12 @@ log("JavaScript loading ended.");
|
||||
*/
|
||||
|
||||
import app_common_module = require("Application/application_common");
|
||||
var currentApp = app_common_module.Application.current;
|
||||
|
||||
// merge the exports of the application_common file with the exports of this file
|
||||
declare var exports;
|
||||
exports.TargetOS = app_common_module.TargetOS;
|
||||
exports.Application = app_common_module.Application;
|
||||
require("Utils/module_merge").merge(app_common_module, exports);
|
||||
|
||||
var currentApp = app_common_module.Application.current;
|
||||
|
||||
// TODO: Declarations
|
||||
export var init = function (nativeApp: any) {
|
||||
|
||||
Reference in New Issue
Block a user