browser adds itself to DOM in add, not show

This commit is contained in:
Chris Wanstrath
2011-11-26 00:45:07 -08:00
parent ba8702fc75
commit 09a5ba0e0c

View File

@@ -15,7 +15,7 @@ class Browser extends Resource
true
# innerHTML - Optional String to set as iframe's content.
show: (innerHTML=null) ->
add: (innerHTML=null) ->
style = "width:100%;height:100%;background-color:#fff;border:none"
@html = "<iframe src='#{@url}' style='#{style}'></iframe>"