Skip to content

Commit

Permalink
Fix rootElement.getAttribute error (#812)
Browse files Browse the repository at this point in the history
Closes #775
  • Loading branch information
RobbieTheWagner committed May 31, 2018
1 parent bda1280 commit 9e41ce1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ember_debug/libs/glimmer-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ export default class {

// set root element's id
let rootElement = this.elementForRoot();
outletTree.value.elementId = rootElement.getAttribute('id');
if (rootElement instanceof HTMLElement) {
outletTree.value.elementId = rootElement.getAttribute('id');
}
outletTree.value.tagName = 'div';

return outletTree;
Expand Down

0 comments on commit 9e41ce1

Please sign in to comment.