mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-01 15:58:19 -04:00
Add tests.
This commit is contained in:
parent
908c49c584
commit
c632cc6dea
2 changed files with 95 additions and 3 deletions
|
@ -164,7 +164,8 @@ modulejs.define('model/item', ['_', 'core/event', 'core/location', 'core/server'
|
|||
|
||||
isCurrentParentFolder: function () {
|
||||
|
||||
return this === getItem(location.getAbsHref()).parent;
|
||||
var item = getItem(location.getAbsHref());
|
||||
return Boolean(item) && this === item.parent;
|
||||
},
|
||||
|
||||
isDomain: function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue