Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Use root div named FramerRoot
- Loading branch information
Showing
with
9 additions
and
1 deletion.
-
+9
−1
src/views/view.coffee
|
@@ -415,7 +415,15 @@ class View extends Frame |
|
|
utils.domComplete @__insertElement |
|
|
|
|
|
__insertElement: => |
|
|
document.body.appendChild @_element |
|
|
|
|
|
if not Framer._rootElement |
|
|
Framer._rootElement = document.createElement "div" |
|
|
Framer._rootElement.id = "FramerRoot" |
|
|
document.body.appendChild Framer._rootElement |
|
|
|
|
|
Framer._rootElement.appendChild @_element |
|
|
|
|
|
# document.body.appendChild @_element |
|
|
|
|
|
destroy: -> |
|
|
if @_element.parentNode |
|
|