CDU: add page accessor for testing
This commit is contained in:
parent
84f0530a1d
commit
de2c42d908
1 changed files with 9 additions and 0 deletions
|
@ -969,6 +969,15 @@ var CDU = {
|
||||||
me._savedPage = nil;
|
me._savedPage = nil;
|
||||||
me.displayPage(saved, CDU.DISPLAY_POP);
|
me.displayPage(saved, CDU.DISPLAY_POP);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getPage: func(tag) {
|
||||||
|
if (!contains(me._pages, tag)) {
|
||||||
|
debug.dump("no page with tag:" ~ tag);
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
|
||||||
|
return me._pages[tag];
|
||||||
|
},
|
||||||
|
|
||||||
requestRefresh: func {
|
requestRefresh: func {
|
||||||
me._refresh();
|
me._refresh();
|
||||||
|
|
Loading…
Reference in a new issue