Ah ok, didnt know that. But it still doesn't work (there isnt even an error or something). I changed
- this.dialog.html(view).appendTo(this.options.appendTo);
- $('<div class="dialog"></div>').html(view).appendTo(this.options.appendTo);