mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-19 14:16:17 +00:00
![natecain](/assets/img/avatar_default.png)
This includes potentially breaking changes. Specifically, before this patch tiddlywiki would default to relative module identifiers Now, tiddlywiki will only search relative paths if explicitly specified Additionally, some "defaulted export contexts" were removed (some modules may make assumptions about context) Some unit tests were modified slightly from their originals Tiddlywiki doesn't have a notion of a "main" program's path Some require calls were explicitly made relative None of these changes should affect the requirement under test in each case
24 lines
299 B
JavaScript
24 lines
299 B
JavaScript
/*\
|
|
title: method/a.js
|
|
type: application/javascript
|
|
module-type: library
|
|
|
|
Method test
|
|
|
|
\*/
|
|
|
|
|
|
exports.foo = function () {
|
|
return this;
|
|
};
|
|
exports.set = function (x) {
|
|
this.x = x;
|
|
};
|
|
exports.get = function () {
|
|
return this.x;
|
|
};
|
|
exports.getClosed = function () {
|
|
return exports.x;
|
|
};
|
|
|