File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -17,32 +17,6 @@ function applyPolyfills() {
1717 }
1818 } ) ( Element ) ;
1919
20- // Overwrites native 'firstElementChild' prototype.
21- // Adds Document & DocumentFragment support for IE9 & Safari.
22- // Returns array instead of HTMLCollection.
23- ( function ( constructor : any ) {
24- if (
25- constructor &&
26- constructor . prototype &&
27- ! constructor . prototype . hasOwnProperty ( 'firstElementChild' )
28- ) {
29- Object . defineProperty ( constructor . prototype , "firstElementChild" , {
30- get : function ( ) {
31- console . log ( 'hitting this!' ) ;
32- if ( this !== constructor . prototype ) {
33- var node , nodes = this . childNodes , i = 0 ;
34- while ( ( node = nodes [ i ++ ] ) ) {
35- if ( node . nodeType === 1 ) {
36- return node ;
37- }
38- }
39- }
40- return null ;
41- }
42- } ) ;
43- }
44- } ) ( Node || Element ) ;
45-
4620 // Production steps of ECMA-262, Edition 5, 15.4.4.17
4721 // Reference: http://es5.github.io/#x15.4.4.17
4822 if ( ! Array . prototype . some ) {
You can’t perform that action at this time.
0 commit comments