Permalink
Browse files

Fix BackgroundLayer when no Framer.Device is present

  • Loading branch information...
nvh committed Jul 18, 2016
1 parent a303c80 commit 997b3364a58bdd04269daf2c56f5e146c4c60d1d
Showing with 1 addition and 1 deletion.
  1. +1 −1 framer/BackgroundLayer.coffee
@@ -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

0 comments on commit 997b336

Please sign in to comment.