Skip to content

Commit 08673f8

Browse files
committed
clean up core/layout.js
1 parent dbf7690 commit 08673f8

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/core/layout.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,6 @@
1616

1717
import {devAssertElement} from './assert';
1818

19-
/**
20-
* Whether the tag is an internal (service) AMP tag.
21-
* @param {!Element|string} tag
22-
* @return {boolean}
23-
*/
24-
function isInternalElement(tag) {
25-
const tagName = typeof tag == 'string' ? tag : tag.tagName;
26-
return !!(tagName && tagName.toLowerCase().startsWith('i-'));
27-
}
28-
2919
/**
3020
* Returns "true" for internal AMP nodes or for placeholder elements.
3121
* @param {!Node} node
@@ -37,7 +27,7 @@ export function isInternalOrServiceNode(node) {
3727
}
3828
node = devAssertElement(node);
3929

40-
if (isInternalElement(node)) {
30+
if (node.tagName.toLowerCase().startsWith('i-')) {
4131
return true;
4232
}
4333
if (

0 commit comments

Comments
 (0)