Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7319694
resources-subject.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1013 B
Referenced Files
None
Subscribers
None
resources-subject.js
View Options
var
Sealious
=
require
(
"sealious"
);
var
ResourceTypeCollection
=
require
(
"./resource-type-collection-subject.js"
);
var
ResourcesSubject
=
function
(){
this
.
resource_collections
=
null
;
this
.
_initialize_resource_collections
=
function
(){
this
.
resource_collections
=
{};
var
resource_types
=
Sealious
.
ChipManager
.
get_chips_by_type
(
"resource_type"
);
for
(
var
resource_type_name
in
resource_types
){
resource_type
=
resource_types
[
resource_type_name
];
this
.
resource_collections
[
resource_type_name
]
=
new
ResourceTypeCollection
(
resource_type
);
}
}
this
.
get_child_subject
=
function
(
key
){
if
(
this
.
resource_collections
===
null
){
this
.
_initialize_resource_collections
();
}
return
this
.
resource_collections
[
key
];
}
this
.
perform_action
=
function
(
context
,
action_name
,
arguments
){
throw
new
Sealious
.
Errors
.
BadSubjecAction
(
"This subject does not provide any actions."
);
}
}
ResourcesSubject
.
prototype
=
Object
.
create
(
Sealious
.
Subject
.
prototype
)
module
.
exports
=
new
ResourcesSubject
();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jul 13, 06:50 (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
821942
Default Alt Text
resources-subject.js (1013 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment