/** * @provides javelin-behavior-differential-populate * @requires javelin-lib-dev */ JX.behavior('differential-populate', function(config) { function onresponse(target, response) { JX.DOM.replace(JX.$(target), JX.HTML(response)); } for (var k in config.registry) { new JX.Request(config.uri, JX.bind(null, onresponse, k)) .setData({ id: config.registry[k][0], against: config.registry[k][1], whitespace: config.whitespace }) .send(); } });