Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F8929380
chip.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
638 B
Referenced Files
None
Subscribers
None
chip.js
View Options
var
Promise
=
require
(
"bluebird"
);
var
chip
=
function
(){
this
.
configuration
=
{};
Object
.
defineProperty
(
this
,
"default_configuration"
,
{
set
:
this
.
apply_default_settings
})
}
chip
.
prototype
=
new
function
(){
this
.
apply_default_settings
=
function
(
default_config
){
for
(
var
i
in
default_config
){
if
(
!
this
.
configuration
[
i
]){
this
.
configuration
[
i
]
=
default_config
[
i
];
}
}
}
this
.
configure
=
function
(
config
){
config
=
config
||
{};
this
.
configuration
=
config
;
}
this
.
start
=
function
(){
//to be overwritten
return
new
Promise
(
function
(
resolve
,
reject
){
resolve
();
})
}
}
module
.
exports
=
chip
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 20, 22:38 (17 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
931305
Default Alt Text
chip.js (638 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment