Commit 0ed159dd authored by PhoeniX's avatar PhoeniX

Profile info display fix

parent 3fd0fc39
......@@ -19,7 +19,8 @@ Date.prototype.toVKDateString = function(){
return this.getDate() + ' ' + months[this.getMonth()] + ' ' + this.getFullYear() + ' года';
};
String.prototype.documentFragment = function(){
console.log(this);
var df = document.createDocumentFragment(),lines=this.split('\n');
for(var i = 0; i < lines.length; i++) df.appendChild(document.createElement('div')).appendChild(document.createTextNode(lines[i]));
for(var i = 0; i < lines.length; i++) df.appendChild(document.createElement('div')).innerHTML = lines[i];
return df;
}
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