browser respects @title too

This commit is contained in:
Chris Wanstrath
2011-11-13 21:29:55 -08:00
parent 0bb0279f07
commit 159600a856

View File

@@ -28,6 +28,9 @@ class Browser extends Resource
if innerHTML
iframe.contentWindow.document.body.innerHTML = innerHTML
window.setTitle iframe.contentWindow.document.title
$(iframe).bind 'load', (e) =>
window.setTitle e.target.contentWindow.document.title
if @title
window.setTitle @title
else
window.setTitle iframe.contentWindow.document.title
$(iframe).bind 'load', (e) =>
window.setTitle e.target.contentWindow.document.title