2016-07-01 11:16:39 +02:00
|
|
|
define(function(){
|
|
|
|
return function(el,url){
|
2016-07-01 16:01:28 +02:00
|
|
|
var frame = document.createElement("iframe");
|
|
|
|
frame.src = url;
|
2016-07-01 11:16:39 +02:00
|
|
|
return function(){
|
2016-07-02 02:11:17 +02:00
|
|
|
el.textContent = "";
|
2016-07-01 16:01:28 +02:00
|
|
|
el.appendChild(frame);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|