Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Allow PanelElements to be instantiated with markup #4478

Merged
merged 2 commits into from
Dec 9, 2014

Conversation

maxbrunsfeld
Copy link
Contributor

This is needed for the styleguide.

@@ -13,14 +14,15 @@ class PanelElement extends HTMLElement
@subscriptions.add @model.onDidDestroy(@destroyed.bind(this))
this

getModel: -> @model
getModel: ->
@model or= new Panel({})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason this is or= instead of ?=?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might also be nice to have the options hash in the panel.coffee constructor default to {} so you don't need to call it with empty object.

maxbrunsfeld added a commit that referenced this pull request Dec 9, 2014
Allow PanelElements to be instantiated with markup
@maxbrunsfeld maxbrunsfeld merged commit caf6fdd into master Dec 9, 2014
@maxbrunsfeld maxbrunsfeld deleted the mb-panel-markup branch December 9, 2014 21:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants