mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Pane has an el variable and requires the html to be passed into the constructor.
This commit is contained in:
@@ -7,11 +7,11 @@ module.exports =
|
||||
class TabsPane extends Pane
|
||||
position: 'top'
|
||||
|
||||
html: $ require 'tabs/tabs.html'
|
||||
|
||||
constructor: ->
|
||||
html = require 'tabs/tabs.html'
|
||||
super html
|
||||
|
||||
# Style html
|
||||
@html.parents('.pane').css height: 'inherit'
|
||||
css = $('<style id="tabs-style"></style>').html require 'tabs/tabs.css'
|
||||
$('head').append css
|
||||
|
||||
|
||||
Reference in New Issue
Block a user