Commit c53908f0 authored by Sven Franck's avatar Sven Franck

removed unused code

parent 6fc97cab
......@@ -8635,40 +8635,7 @@
promise_list[j + k] = app.setContent(feature.children[k]);
}
}
return RSVP.all(promise_list)
// // TODO: remove all this, should be handled by setContent, but
// // then setContent needs to know where to put things. So if
// // we make a footer, set content should insert it into the page or
// // DOM. End.
// .then (function (response_list) {
// var target, l, container, i18n;
//
// // create a fragment for promises
// target = document.createDocumentFragment();
//
// for (l = 0; l < response_list.length; l += 1) {
// container = response_list[l];
// // exclude undefined promises (i18n)
// if (container && container.nodeName) {
//
// // translate
// if (i18n) {
// map.actions.translateNodeList(container);
// }
//
// // insert panel as first child into DOM
// if (util.testForString("ui-panel", container.className)) {
// document.body.insertBefore(
// container,
// document.body.children[0]
// );
// } else {
// target.appendChild(container);
// }
// }
// document.body.appendChild(target);
// }
// });
return RSVP.all(promise_list);
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment