Pane has an el variable and requires the html to be passed into the constructor.

This commit is contained in:
Corey Johnson
2011-12-01 11:14:02 -05:00
parent 170aae6ff9
commit c931f1fa8a
5 changed files with 30 additions and 29 deletions

View File

@@ -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