This repository was archived by the owner on Mar 13, 2018. It is now read-only.
File tree 1 file changed +0
-22
lines changed
1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,6 @@ if (!useNative) {
78
78
// from the main document, only load imports
79
79
// TODO(sjmiles): do this by altering the selector list instead
80
80
nodes = this . filterMainDocumentNodes ( doc , nodes ) ;
81
- // extra link nodes from templates, filter templates out of the nodes list
82
- nodes = this . extractTemplateNodes ( nodes ) ;
83
81
return nodes ;
84
82
} ,
85
83
filterMainDocumentNodes : function ( doc , nodes ) {
@@ -90,26 +88,6 @@ if (!useNative) {
90
88
}
91
89
return nodes ;
92
90
} ,
93
- extractTemplateNodes : function ( nodes ) {
94
- var extra = [ ] ;
95
- nodes = Array . prototype . filter . call ( nodes , function ( n ) {
96
- if ( n . localName === 'template' ) {
97
- if ( n . content ) {
98
- var l$ = n . content . querySelectorAll ( 'link[rel=' + STYLE_LINK_TYPE +
99
- ']' ) ;
100
- if ( l$ . length ) {
101
- extra = extra . concat ( Array . prototype . slice . call ( l$ , 0 ) ) ;
102
- }
103
- }
104
- return false ;
105
- }
106
- return true ;
107
- } ) ;
108
- if ( extra . length ) {
109
- nodes = nodes . concat ( extra ) ;
110
- }
111
- return nodes ;
112
- } ,
113
91
loaded : function ( url , elt , resource ) {
114
92
if ( isDocumentLink ( elt ) ) {
115
93
var doc = importer . documents [ url ] ;
You can’t perform that action at this time.
0 commit comments