Move demo border to TestView to be used generally

This commit is contained in:
Scott Erickson 2016-01-26 11:47:39 -08:00
parent d00f8344be
commit 3dda5710de
2 changed files with 5 additions and 6 deletions

View file

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

View file

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