This commit is contained in:
Max Brunsfeld
2014-12-09 11:36:04 -08:00
parent c9e7cfc02c
commit 1c7843d9b2
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ class PanelElement extends HTMLElement
this
getModel: ->
@model or= new Panel({})
@model ?= new Panel
getItemView: ->
atom.views.getView(@getModel().getItem())

View File

@@ -14,7 +14,7 @@ class Panel
Section: Construction and Destruction
###
constructor: ({@item, @visible, @priority, @className}) ->
constructor: ({@item, @visible, @priority, @className}={}) ->
@emitter = new Emitter
@visible ?= true
@priority ?= 100