-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathutils.js
31 lines (31 loc) · 846 Bytes
/
utils.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
var Acme;
(function (Acme) {
var Utils;
(function (Utils) {
var Tracker = (function () {
function Tracker() {
this.count = 0;
}
Tracker.prototype.plusOne = function () {
this.count++;
};
return Tracker;
}());
Utils.tracker = new Tracker();
})(Utils = Acme.Utils || (Acme.Utils = {}));
})(Acme || (Acme = {}));
var Acme;
(function (Acme) {
var Utils;
(function (Utils) {
Utils.greeting = "hello";
})(Utils = Acme.Utils || (Acme.Utils = {}));
})(Acme || (Acme = {}));
var tracker = Acme.Utils.tracker;
console.log(Acme.Utils.greeting);
tracker.plusOne();
console.log(tracker.count);
var tracker2 = Acme.Utils.tracker;
tracker2.plusOne();
console.log(tracker2.count);
//# sourceMappingURL=utils.js.map