setting browser html happens in show()

This commit is contained in:
Chris Wanstrath
2011-11-13 20:41:09 -08:00
parent 85656a26fd
commit 2fdd19efe8

View File

@@ -12,12 +12,12 @@ class Browser extends Resource
return false if not /^https?:/.test url
@url = url
style = "width:100%;height:100%;background-color:#fff;border:none"
@html = "<iframe src='#{@url}' style='#{style}'></iframe>"
@show()
true
show: ->
style = "width:100%;height:100%;background-color:#fff;border:none"
@html = "<iframe src='#{@url}' style='#{style}'></iframe>"
super