Fix tslint.

Running "tslint:build" (tslint) task
>> ./apps/ui-tests-app/app.ts[4, 1]: consecutive blank lines are
disallowed
>> ./apps/ui-tests-app/mainPage.ts[23, 17]: duplicate variable:
'fileName'
This commit is contained in:
Vasil Chimev
2015-06-15 15:43:47 +03:00
parent 82b5c0f81a
commit e2a0c7d587
2 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,6 @@
import application = require("application");
application.mainModule = "mainPage";
application.onUncaughtError = function (error: application.NativeScriptError) {
console.warn(error.message);
if (error.nativeError) {
@ -9,7 +8,6 @@ application.onUncaughtError = function (error: application.NativeScriptError) {
}
}
application.on(application.launchEvent, function (args: application.ApplicationEventData) {
if (args.android) {
// For Android applications, args.android is an android.content.Intent class.

View File

@ -20,7 +20,7 @@ export function createPage() {
frame.topmost().navigate("pages/" + txtInput.text);
}
else {
var fileName = fs.path.join(__dirname, txtInput.text, txtInput.text);
fileName = fs.path.join(__dirname, txtInput.text, txtInput.text);
if ((fs.File.exists(fileName + ".xml") || (fs.File.exists(fileName + ".js")))) {
frame.topmost().navigate(txtInput.text + "/" + txtInput.text);
}