Skip to content

Commit

Permalink
Fix BackgroundLayer when no Framer.Device is present
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh committed Jul 18, 2016
1 parent a303c80 commit 997b336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framer/BackgroundLayer.coffee
Expand Up @@ -15,7 +15,7 @@ class exports.BackgroundLayer extends Layer
@sendToBack()
@layout()
@_context.domEventManager.wrap(window).addEventListener("resize", @layout)
Framer.Device.on("change:orientation", @layout)
Framer.Device?.on("change:orientation", @layout)

layout: =>
if @parent
Expand Down

0 comments on commit 997b336

Please sign in to comment.