]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Remove console.log
authorJordan Humphreys <jordan@mailyard.net>
Thu, 28 Jun 2012 22:42:29 +0000 (15:42 -0700)
committerJordan Humphreys <jordan@mailyard.net>
Thu, 28 Jun 2012 22:42:29 +0000 (15:42 -0700)
marketing/javascripts/foundation.top-bar.js

index 0b5ddb43a7f3ba0a84a0911499102e01879fe853..2efcb6a965e50b1d67732701c20c5dd33ed87992 100644 (file)
@@ -11,8 +11,6 @@
     // Pull element out of the DOM for manipulation
     $attached.detach();
 
-    console.log($attached, $attached.find('li.has-dropdown>a'));
-
     $attached.find('li.has-dropdown>a').each(function () {
       var $link = $(this),
           $dropdown = $link.siblings('ul.dropdown'),
 
   $('.top-bar .name').on('click', function (event) {
     var $this = $(this);
-    console.log('clicked');
+
     if (onMobile()) {
       event.preventDefault();
-      console.log('mobile');
       if (!$this.hasClass('top-bar-initialized')) {
-        console.log('add initialized');
         initializeMarkup($this.closest('.top-bar'));
         $this.addClass('top-bar-initialized');
       }
@@ -53,7 +49,7 @@
     }
   });
 
-  $('.top-bar .has-dropdown>a').live('click', function (event) {
+  $('.top-bar .has-dropdown>a').on('click', function (event) {
     if (onMobile()) {
       var $this = $(this),
           $selectedLi = $this.closest('li'),
@@ -83,7 +79,7 @@
     }
   });
 
-  $('.top-bar .has-dropdown .back').live('click', function (event) {
+  $('.top-bar .has-dropdown .back').on('click', function (event) {
     var $this = $(this),
         $activeLi = $this.closest('li.active'),
         $attached = $this.closest('.attached'),