test if #isso-thread exists

This commit is contained in:
Martin Zimmermann 2013-10-13 23:33:06 +02:00
parent 5d0cad4272
commit b691579bad

View File

@ -11,6 +11,10 @@ require(["ready", "app/api", "app/isso", "app/count", "app/dom", "app/markup"],
count();
if ($("#isso-thread") === null) {
return console.log("abort, #isso-thread is missing");
}
$("#isso-thread").append($.new('h4'));
$("#isso-thread").append(new isso.Postbox(null));
$("#isso-thread").append('<div id="isso-root"></div>');