Skip to content

Commit e57463c

Browse files
committed
fix function setup_layout_elements(callback, options)
1 parent 5319fad commit e57463c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

application/net/wiki.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function module_code(library_namespace) {
176176
this.running = true;
177177
}
178178

179-
// 權杖
179+
// 權杖 TODO: use .tokens
180180
this.token = {
181181
// lgusername
182182
lgname : user_name,

application/net/wiki/parser.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,10 @@ function module_code(library_namespace) {
15061506
// 取得定位各布局項目所需元素。
15071507
// TODO: Not yet tested
15081508
function setup_layout_elements(callback, options) {
1509-
var session = wiki_API.session_of_options(options);
1509+
throw new Error('NYI');
1510+
options = library_namespace.setup_options(options);
1511+
1512+
var session = /* wiki_API.session_of_options(options) || */this;
15101513
if (!session.configuration)
15111514
session.configuration = Object.create(null);
15121515
var layout_index = session.configuration.layout_index;
@@ -2234,7 +2237,7 @@ function module_code(library_namespace) {
22342237
}
22352238

22362239
template_name_list = template_order_of_layout[location]
2237-
//
2240+
// normalize template names
22382241
= template_name_list.filter(function(page_name) {
22392242
page_name = page_name.trim();
22402243
if (!page_name)

0 commit comments

Comments
 (0)