Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F433279
behavior-pull-lastmodified.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
991 B
Referenced Files
None
Subscribers
None
behavior-pull-lastmodified.js
View Options
/**
* @provides javelin-behavior-diffusion-pull-lastmodified
* @requires javelin-behavior
* javelin-dom
* javelin-util
* javelin-workflow
* javelin-json
*/
JX
.
behavior
(
'diffusion-pull-lastmodified'
,
function
(
config
)
{
new
JX
.
Workflow
(
config
.
uri
,
{
paths
:
JX
.
JSON
.
stringify
(
JX
.
keys
(
config
.
map
))})
.
setHandler
(
function
(
r
)
{
for
(
var
k
in
r
)
{
for
(
var
l
in
r
[
k
])
{
if
(
!
config
.
map
[
k
][
l
])
{
continue
;
}
try
{
JX
.
DOM
.
setContent
(
JX
.
$
(
config
.
map
[
k
][
l
]),
JX
.
$H
(
r
[
k
][
l
]));
}
catch
(
ex
)
{
// The way this works is weird and sometimes the components get
// out of sync. Fail gently until we can eventually improve the
// underlying mechanism.
// In particular, we currently may generate lint information
// without generating a lint column. See T9524.
}
}
}
})
.
start
();
});
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Sat, May 3, 3:37 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
61153
Default Alt Text
behavior-pull-lastmodified.js (991 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment