]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: remove console logs
authorJoe Workman <joe@workmanmail.com>
Mon, 1 Nov 2021 23:58:36 +0000 (16:58 -0700)
committerJoe Workman <joe@workmanmail.com>
Mon, 1 Nov 2021 23:58:36 +0000 (16:58 -0700)
js/foundation.drilldown.js
js/foundation.interchange.js
js/foundation.responsiveAccordionTabs.js
js/foundation.tooltip.js
js/foundation.util.motion.js

index 4fcbef44f615377e23e3fcd36c2bd154b6df5405..2ee996e558a31fb2debaf025921207dd136d78b8 100644 (file)
@@ -327,7 +327,6 @@ class Drilldown extends Plugin {
     $elem.off('click.zf.drilldown');
     $elem.children('.js-drilldown-back')
       .on('click.zf.drilldown', function() {
-        // console.log('mouseup on back');
         _this._hide($elem);
 
         // If there is a parent submenu, call show
index b03bfe3f7570d90715f61241cf397dba5692ef53..bbd17ca950e3afc998f14d5b01302229a2a723de 100644 (file)
@@ -96,7 +96,7 @@ class Interchange extends Plugin {
     if (typeof this.options.type === 'undefined')
       this.options.type = 'auto';
     else if (types.indexOf(this.options.type) === -1) {
-      console.log(`Warning: invalid value "${this.options.type}" for Interchange option "type"`);
+      console.warn(`Warning: invalid value "${this.options.type}" for Interchange option "type"`);
       this.options.type = 'auto';
     }
   }
index 78ade843ed30ca4df2f608549a1c8ca76bbff9e6..e5ef6b44b21bed5f1aa685c1d9e42da97d453017 100644 (file)
@@ -120,7 +120,7 @@ class ResponsiveAccordionTabs extends Plugin{
           tmpPlugin.destroy();
         }
         catch(e) {
-          console.log(e);
+          console.warn(`Warning: Problems getting Accordion/Tab options: ${e}`);
         }
       }
     }
index f90e8465cac51bce57b670ade624fdc7b82ed7e1..03c1b5c1328cd8b82cd83370eaf36a0d4923e449 100644 (file)
@@ -153,7 +153,6 @@ class Tooltip extends Positionable {
       'aria-hidden': false
     });
     _this.isActive = true;
-    // console.log(this.template);
     this.template.stop().hide().css('visibility', '').fadeIn(this.options.fadeInDuration, function() {
       //maybe do stuff?
     });
@@ -170,7 +169,6 @@ class Tooltip extends Positionable {
    * @function
    */
   hide() {
-    // console.log('hiding', this.$element.data('yeti-box'));
     var _this = this;
     this.template.stop().attr({
       'aria-hidden': true,
index 1ba18eaae5179dda3e736ba1cf3ca1f9ce7abc45..ea076cedf3a7b55b39ddf84752067d0285f27852 100644 (file)
@@ -21,7 +21,6 @@ const Motion = {
 
 function Move(duration, elem, fn){
   var anim, prog, start = null;
-  // console.log('called');
 
   if (duration === 0) {
     fn.apply(elem);
@@ -31,7 +30,6 @@ function Move(duration, elem, fn){
 
   function move(ts){
     if(!start) start = ts;
-    // console.log(start, ts);
     prog = ts - start;
     fn.apply(elem);