mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Move demo border to TestView to be used generally
This commit is contained in:
parent
d00f8344be
commit
3dda5710de
2 changed files with 5 additions and 6 deletions
|
@ -63,6 +63,11 @@ module.exports = TestView = class TestView extends RootView
|
|||
specFiles ?= @getAllSpecFiles()
|
||||
if demosOn
|
||||
jasmine.demoEl = ($el) ->
|
||||
$el.css({
|
||||
'border': '2px solid black'
|
||||
'background': 'white'
|
||||
'padding': '20px'
|
||||
})
|
||||
$('#demo-area').append($el)
|
||||
jasmine.demoModal = _.once (modal) ->
|
||||
currentView.openModalView(modal)
|
||||
|
|
|
@ -6,12 +6,6 @@ BlandView = class BlandView extends CocoView
|
|||
initialize: ->
|
||||
@user = new User()
|
||||
@supermodel.loadModel(@user)
|
||||
afterRender: ->
|
||||
@$el.css({
|
||||
'border': '2px solid black'
|
||||
'background': 'white'
|
||||
'padding': '20px'
|
||||
})
|
||||
|
||||
describe 'CocoView', ->
|
||||
describe 'network error handling', ->
|
||||
|
|
Loading…
Reference in a new issue