mirror of
https://github.com/atom/atom.git
synced 2026-02-08 13:45:09 -05:00
browsers hide themselves
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
$ = require 'jquery'
|
||||
|
||||
Event = require 'event'
|
||||
|
||||
module.exports =
|
||||
class Browser
|
||||
constructor: (@path) ->
|
||||
$('.main.pane').append @html().hide()
|
||||
|
||||
Event.on "editor:bufferFocus", (e) =>
|
||||
@hide() if e.details isnt @path
|
||||
|
||||
on: ->
|
||||
html: ->
|
||||
$ "<iframe src='#{@path}' style='width:100%;height:100%'></iframe>"
|
||||
|
||||
@@ -156,7 +156,6 @@ class Editor
|
||||
@activePath = path
|
||||
|
||||
buffer = @buffers[path] or @addBuffer path
|
||||
$("iframe").hide()
|
||||
if buffer.constructor is EditSession
|
||||
$('#ace-editor').show()
|
||||
@ace.setSession buffer
|
||||
|
||||
Reference in New Issue
Block a user