Skip to content

Commit 91c4f97

Browse files
committed
Ensure isSerializationFirstNode is defined
1 parent 725aedb commit 91c4f97

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

vendor/experimental-render-mode-rehydrate.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
if (typeof FastBoot === 'undefined') {
33
var current = document.getElementById('fastboot-body-start');
44

5-
if (current && Ember.ViewUtils.isSerializationFirstNode(current.nextSibling)) {
5+
if (
6+
current &&
7+
typeof Ember.ViewUtils.isSerializationFirstNode === 'function' &&
8+
Ember.ViewUtils.isSerializationFirstNode(current.nextSibling)
9+
) {
610
Ember.ApplicationInstance.reopen({
711
_bootSync: function(options) {
812
if (options === undefined) {

0 commit comments

Comments
 (0)