Skip to content

Commit 9d379a8

Browse files
author
Vladimir Enchev
committed
require fixes
1 parent 8107211 commit 9d379a8

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

Tests/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ app.init({
1313
return com.tns.NativeScriptActivity.extends({});
1414
},
1515
onCreate: function() {
16-
require("Application").init(this);
16+
require("application").init(this);
1717
require("Tests").runAll();
1818
}
1919
});

Tests/TKUnit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
*/
1212

13-
var Application = require("Application");
13+
var Application = require("application");
1414

1515
var runTest = function(test, testName) {
1616
test();

application/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
To initialize the module put the following code in the main entry point file (app.js):
22
```js
3-
var appModule = require("Application");
3+
var appModule = require("application");
44
appModule.init([native app instance]);
55
```

application/application.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
Current launch sequence for iOS looks like:
44
5-
var app = require("Application/application");
5+
var app = require("application/application");
66
77
app.tk.ui.Application.current.onLaunch = function() {
88
log("tk.ui.Application.current.onLaunch");

camera/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
declare var module, require;
2-
module.exports = require("Camera/camera");
2+
module.exports = require("camera/camera");

localsettings/local_settings.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export var remove = function (key: string): void {
6868
/*
6969
these are commented out to be used only if requested by users or otherwise needed
7070
71-
import utils_module = require("Utils/utils_android");
71+
import utils_module = require("utils/utils_android");
7272
7373
export var getStringArray = function (key: string, defaultValue?: string[]): string[]{
7474
Common.checkKey(key);

localsettings/local_settings.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export var remove = function (key: string): void {
6363
/*
6464
these are commented out to be used only if requested by users or otherwise needed
6565
66-
import utils_module = require("Utils/utils_ios");
66+
import utils_module = require("utils/utils_ios");
6767
6868
export var getStringArray = function (key: string, defaultValue?: string[]): string[] {
6969
Common.checkKey(key);

location/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Initializing location:
22

33
```
4-
var LocationManager = require("Location").LocationManager;
4+
var LocationManager = require("location").LocationManager;
55
66
console.log('is location enabled: ' + LocationManager.isLocationEnabled());
77

0 commit comments

Comments
 (0)