@@ -555,12 +555,12 @@ simply = {
555555 } ) ;
556556 } )
557557 . catch ( error => {
558- console . warn ( "Fetch error:" , error . message , "(possible CORS block) Trying with proxy one time." ) ;
558+ // console.warn("Fetch error:", error.message, "(possible CORS block) Trying with proxy one time.");
559559 if ( ! triedWithCorsProxy && ! path . startsWith ( "https://cors.woebegone.workers.dev/" ) ) {
560560 const proxyUrl = "https://cors.woebegone.workers.dev/?" + path ;
561561 simply . loadComponent ( proxyUrl , name , callback , true ) ;
562562 } else {
563- console . error ( "Could not load component even with proxy:" , path ) ;
563+ // console.error("Could not load component even with proxy:", path);
564564 }
565565 } ) ;
566566 } ,
@@ -849,7 +849,7 @@ simply = {
849849 node . setAttribute ( "style" , "height: auto; width: auto" ) ;
850850 node . setAttribute ( "rendered" , true ) ;
851851
852- console . warn ( "framer-component added inside <" + name + ">" , node ) ;
852+ // console.warn("framer-component added inside <" + name + ">", node);
853853
854854 // 🔁 Framer'a mesaj gönder
855855 window . parent . postMessage ( {
@@ -862,7 +862,7 @@ simply = {
862862
863863 // ✅ Sadece bu `dom` içinde click'leri dinle
864864 node . addEventListener ( "click" , e => {
865- console . log ( "click" , e )
865+ // console.log("click", e)
866866 if ( node . contains ( e . target ) ) {
867867 triggerOnTapFromDOM ( e . target ) ;
868868 }
@@ -883,7 +883,7 @@ simply = {
883883 // framer gibi tap'ın parent'larını da tetiklemek istersen
884884 // çalışan kod şurada: https://chatgpt.com/s/t_68710b873f9481919232870b0c7eeb32
885885 function triggerOnTapFromDOM ( domElement ) {
886- console . log ( "tap" )
886+ // console.log("tap")
887887 var current = domElement ;
888888
889889 while ( current && current . tagName !== "FRAMER-COMPONENT" ) {
@@ -904,7 +904,7 @@ simply = {
904904 try {
905905 var onTap = fiber . return . child . pendingProps . onTap ;
906906 if ( typeof onTap === "function" ) {
907- console . log ( "✅ Triggering onTap on:" , current ) ;
907+ // console.log("✅ Triggering onTap on:", current);
908908 onTap ( ) ;
909909 setTimeout ( ( ) => {
910910 try {
@@ -918,7 +918,7 @@ simply = {
918918 try {
919919 var onTap = fiber . return . child . child . stateNode . props . onTap ;
920920 if ( typeof onTap === "function" ) {
921- console . log ( "✅ Triggering onTap on:" , current ) ;
921+ // console.log("✅ Triggering onTap on:", current);
922922 onTap ( ) ;
923923 setTimeout ( ( ) => {
924924 try {
@@ -932,7 +932,7 @@ simply = {
932932 current = current . parentElement ;
933933 }
934934
935- console . warn ( "No onTap handler found up to <framer-component>" ) ;
935+ // console.warn("No onTap handler found up to <framer-component>");
936936 }
937937
938938 dom . addEventListener ( "click" , function ( e ) {
@@ -944,7 +944,7 @@ simply = {
944944 link &&
945945 ( link . closest ( "framer-component" ) || link . hasAttribute ( "route-framer" ) )
946946 ) {
947- console . log ( "Send this link to framer for route:" , link . getAttribute ( "href" ) ) ;
947+ // console.log("Send this link to framer for route:", link.getAttribute("href"));
948948 e . preventDefault ( ) ;
949949 e . stopPropagation ( ) ;
950950 window . parent . postMessage ( {
@@ -976,7 +976,7 @@ simply = {
976976 if ( cachedData ) {
977977 this . cache . data = simply . cache [ simply . lastPath ] [ component . elementId ] . data ;
978978
979- console . log ( "cache hit for data!" ) ;
979+ // console.log("cache hit for data!");
980980 for ( const key in cachedData ) {
981981 if ( Object . hasOwnProperty . call ( cachedData , key ) ) {
982982 component . dataToObserve [ key ] = cachedData [ key ] ;
@@ -1030,7 +1030,7 @@ simply = {
10301030
10311031 if ( cachedProps ) {
10321032 this . cache . props = simply . cache [ simply . lastPath ] [ component . elementId ] . props ;
1033- console . log ( "cache hit for props!" ) ;
1033+ // console.log("cache hit for props!");
10341034 for ( const key in cachedProps ) {
10351035 if ( Object . hasOwnProperty . call ( cachedProps , key ) ) {
10361036 component . propsToObserve [ key ] = cachedProps [ key ] ;
@@ -1216,7 +1216,7 @@ simply = {
12161216 event . stopPropagation ( ) ;
12171217
12181218 if ( event . data . method === "set-props" ) {
1219- console . log ( "props from parent" , event . data . props ) ;
1219+ // console.log("props from parent", event.data.props);
12201220 Object . assign ( props , event . data . props )
12211221
12221222
@@ -1487,7 +1487,7 @@ simply = {
14871487
14881488
14891489 if ( this . innerHTML && this . innerHTML . trim ( ) !== "" ) {
1490- console . log ( this . innerHTML ) ;
1490+ // console.log(this.innerHTML);
14911491 this . slotContent = this . innerHTML ;
14921492
14931493 // parent var context odur
@@ -1623,7 +1623,7 @@ simply = {
16231623 return false ;
16241624 }
16251625 if ( fromEl . tagName == "DIALOG" ) {
1626- console . log ( fromEl . getAttribute ( "open" ) , toEl . getAttribute ( "open" ) ) ;
1626+ // console.log(fromEl.getAttribute("open"), toEl.getAttribute("open"));
16271627 if ( fromEl . hasAttribute ( "open" ) ) {
16281628 toEl . setAttribute ( "open" , true ) ;
16291629 }
@@ -1645,7 +1645,7 @@ simply = {
16451645 return false ;
16461646 }
16471647 if ( fromEl . isSameNode ( toEl ) ) {
1648- console . log ( "same mi node" , toEl , fromEl . value , toEl . value )
1648+ // console.log("same mi node", toEl, fromEl.value, toEl.value)
16491649 return false ;
16501650 }
16511651 if ( fromEl . isEqualNode ( toEl ) ) {
@@ -1779,7 +1779,7 @@ simply = {
17791779
17801780 window . removeEventListener ( "message" , this . framerPropsListener ) ;
17811781
1782- console . log ( "this thist his" )
1782+ // console.log("this thist his")
17831783 // console.log("disconnector", this.uid);
17841784 if ( this . cb . state ) {
17851785 this . cb . state [ this . uid ] = null ;
@@ -4176,7 +4176,7 @@ simply = {
41764176 wrappedFn . pureFunc = arguments [ i ] ;
41774177 simply . routes [ theRoutePath ] . exits . push ( wrappedFn ) ;
41784178 }
4179- console . log ( theRoutePath , "'in exitleri silindi yenisi eklendi" ) ;
4179+ // console.log(theRoutePath, "'in exitleri silindi yenisi eklendi");
41804180 } ;
41814181
41824182 /**
@@ -4263,7 +4263,7 @@ simply = {
42634263 if ( this . current == path ) {
42644264 let route = simply . page . getRouteByPath ( path ) . value ;
42654265 if ( ! route . settings . same_page_refresh ) {
4266- console . log ( "same page baba, no refresh sana" , this , e ) ;
4266+ // console.log("same page baba, no refresh sana", this, e);
42674267 e . preventDefault ( ) ;
42684268 return ;
42694269 }
@@ -4477,12 +4477,12 @@ simply = {
44774477 }
44784478
44794479 pageFn . deleteRouteByPath = function ( path ) {
4480- console . log ( "hee" , this , page . callbacks ) ;
4480+ // console.log("hee", this, page.callbacks);
44814481 let route = pageFn . getRouteByPath ( path ) ;
44824482 var rebelCallbacks = route . value . page . callbacks
44834483
44844484 for ( const [ key , v ] of Object . entries ( route . value . callbacks ) ) {
4485- console . log ( v ) ;
4485+ // console.log(v);
44864486 const fn = v . originalFn ;
44874487
44884488 // Remove from global callbacks
@@ -4576,7 +4576,7 @@ simply = {
45764576 } ,
45774577 set ( value ) {
45784578 _rendered = value ;
4579- console . log ( 'rendered changed to:' , value ) ;
4579+ // console.log('rendered changed to:', value);
45804580 if ( value ) resolve ( value ) ;
45814581 } ,
45824582 } ) ;
@@ -4651,7 +4651,7 @@ simply = {
46514651 var parent ;
46524652 if ( settings . child_of ) {
46534653 var targetRoute = simply . page . getRouteByPath ( settings . path ) ;
4654- console . log ( targetRoute ) ;
4654+ // console.log(targetRoute);
46554655 var tree = targetRoute . value . tree ;
46564656 var parentRootEl ;
46574657 var lastParentComponent ;
@@ -4695,7 +4695,7 @@ simply = {
46954695 if ( directChild ) {
46964696 // zaten render edilmiş
46974697 // innerHTML ile basmadan düz render()
4698- console . log ( "düz render for " , directChild ) ;
4698+ // console.log("düz render for ", directChild);
46994699 var component = directChild
47004700 directChild . render ( ) ;
47014701 }
@@ -4752,7 +4752,7 @@ simply = {
47524752
47534753 }
47544754 else {
4755- console . warn ( "INNERHTML" )
4755+ // console.warn("INNERHTML")
47564756 let attrs = [ ] ;
47574757 if ( settings . shadow_root == true ) attrs . push ( 'shadow' ) ;
47584758 if ( settings . cache ) attrs . push ( 'cache' ) ;
@@ -4763,7 +4763,7 @@ simply = {
47634763 window . scrollPositions = window . scrollPositions ? window . scrollPositions : { }
47644764 simply . saveScrollPositions ( route , simply . lastPath ) ;
47654765 }
4766- console . log ( "heee" , settings ) ;
4766+ // console.log("heee", settings);
47674767 route . innerHTML = `<${ settings . component } ${ attrs . join ( ' ' ) } ></${ settings . component } >` ;
47684768
47694769 var component = route . querySelector ( settings . component ) ;
@@ -4911,7 +4911,7 @@ simply = {
49114911
49124912 // show <path> with [state]
49134913 } else if ( 'string' === typeof path ) {
4914- console . log ( "show or redirect" ) ;
4914+ // console.log("show or redirect");
49154915 this [ 'string' === typeof fn ? 'redirect' : 'show' ] ( path , fn ) ;
49164916 // start [options]
49174917 } else {
0 commit comments