Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit ab1d487

Browse files
committed
fix: correctly detect support for document.registerElement
1 parent b811d7c commit ab1d487

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/patch/registerElement.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
'use strict';
77

88
describe('document.registerElement', function () {
9-
if (!'registerElement' in document) {
9+
if (!('registerElement' in document)) {
1010
console.log('WARNING: skipping document.registerElement test (missing this API)');
1111
return;
1212
}

zone.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ Zone.patchMutationObserverClass = function (className) {
512512
};
513513

514514
Zone.patchRegisterElement = function () {
515-
if (!'registerElement' in document) {
515+
if (!('registerElement' in document)) {
516516
return;
517517
}
518518
var _registerElement = document.registerElement;

0 commit comments

Comments
 (0)