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:
atanasovg
2014-04-29 11:52:45 +03:00
parent bf9b564bf5
commit 162dbe56c9
14 changed files with 189 additions and 134 deletions

View File

@@ -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 () {

View File

@@ -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) {