@@ -812,22 +812,6 @@ let _ = self.Mavo = $.Class(class Mavo {
812812 $ . ready ( ) . then ( ( ) => _ . Plugins . load ( ) ) ,
813813 ]
814814
815- // Only naive tests here (no false positives, but false negatives are ok).
816- // polyfill.io will do more proper checking
817- static polyfillsNeeded = {
818- "blissfuljs" : Array . from && document . documentElement . closest && self . URL && "searchParams" in URL . prototype ,
819- "Intl.~locale.en" : self . Intl ,
820- "IntersectionObserver" : self . IntersectionObserver ,
821- "Symbol" : self . Symbol ,
822- "Element.prototype.remove" : Element . prototype . remove ,
823- "Element.prototype.before" : Element . prototype . before ,
824- "Element.prototype.after" : Element . prototype . after ,
825- "Element.prototype.prepend" : Element . prototype . prepend ,
826- "Array.prototype.flat" : Array . prototype . flat ,
827- "Array.prototype.flatMap" : Array . prototype . flatMap ,
828- }
829- static polyfills = [ ]
830-
831815 static init ( container = document ) {
832816 let mavos = Array . isArray ( arguments [ 0 ] ) ? arguments [ 0 ] : $$ ( _ . selectors . init , container ) ;
833817
@@ -986,7 +970,7 @@ let _ = self.Mavo = $.Class(class Mavo {
986970} ) ;
987971
988972// Define symbols
989- // These are lazy to give the Symbol polyfill a chance to load if needed
973+ // TODO: These should not be lazy anymore?
990974[ "toNode" , "isProxy" , "route" , "parent" , "property" , "mavo" , "groupedBy" , "as" ] . forEach ( symbol => {
991975 $ . lazy ( _ , symbol , ( ) => Symbol ( symbol ) ) ;
992976} ) ;
@@ -1018,23 +1002,12 @@ s.output = "[property=output], .mv-output";
10181002
10191003}
10201004
1021- $ . each ( _ . polyfillsNeeded , ( id , supported ) => {
1022- if ( ! supported ) {
1023- _ . polyfills . push ( id ) ;
1024- }
1025- } ) ;
1026-
10271005_ . ready = _ . thenAll ( _ . dependencies ) ;
10281006_ . inited = _ . promise ( ) ;
10291007
10301008// Init mavo. Async to give other scripts a chance to modify stuff.
10311009await _ . defer ( ) ;
10321010
1033- if ( _ . polyfills . length > 0 ) {
1034- var polyfillURL = "https://cdn.polyfill.io/v2/polyfill.min.js?unknown=polyfill&features=" + _ . polyfills . map ( a => a + "|gated" ) . join ( "," ) ;
1035- _ . dependencies . push ( $ . include ( polyfillURL ) ) ;
1036- }
1037-
10381011await $ . ready ( ) ;
10391012
10401013/***********************
0 commit comments