Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix BackgroundLayer when no Framer.Device is present
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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 |
|
|