Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895510
DarkLog.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
785 B
Referenced Files
None
Subscribers
None
DarkLog.js
View Options
/**
* @provides phabricator-darklog
* @javelin
*/
JX
.
install
(
'DarkLog'
,
{
construct
:
function
()
{
this
.
_messages
=
[];
},
members
:
{
_node
:
null
,
_messages
:
null
,
addMessage
:
function
(
message
)
{
var
node
=
message
.
getNode
();
this
.
_messages
.
push
(
message
);
if
(
this
.
_node
)
{
this
.
_append
([
node
]);
}
return
this
;
},
setNode
:
function
(
node
)
{
var
nodes
=
[];
for
(
var
ii
=
0
;
ii
<
this
.
_messages
.
length
;
ii
++
)
{
nodes
.
push
(
this
.
_messages
[
ii
].
getNode
());
}
this
.
_node
=
node
;
this
.
_append
(
nodes
);
return
this
;
},
_append
:
function
(
nodes
)
{
for
(
var
ii
=
0
;
ii
<
nodes
.
length
;
ii
++
)
{
this
.
_node
.
appendChild
(
nodes
[
ii
]);
}
}
}
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jan 19 2025, 21:34 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128993
Default Alt Text
DarkLog.js (785 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment