Path: blob/master/webroot/rsrc/js/application/diffusion/behavior-pull-lastmodified.js
12241 views
/**1* @provides javelin-behavior-diffusion-pull-lastmodified2* @requires javelin-behavior3* javelin-dom4* javelin-util5* javelin-workflow6* javelin-json7*/89JX.behavior('diffusion-pull-lastmodified', function(config) {1011new JX.Workflow(config.uri, {paths: JX.JSON.stringify(JX.keys(config.map))})12.setHandler(function(r) {13for (var k in r) {14for (var l in r[k]) {15if (!config.map[k][l]) {16continue;17}18try {19JX.DOM.setContent(JX.$(config.map[k][l]), JX.$H(r[k][l]));20} catch (ex) {21// The way this works is weird and sometimes the components get22// out of sync. Fail gently until we can eventually improve the23// underlying mechanism.2425// In particular, we currently may generate lint information26// without generating a lint column. See T9524.27}28}29}30})31.start();3233});343536