Skip to content

Commit

Permalink
Fix leftover console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kball committed Jun 22, 2017
1 parent 41fb72d commit 135d5d9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions js/foundation.util.triggers.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@ Triggers.Listeners.Basic = {
triggers($(this), 'open');
},
closeListener: function() {
console.log('in close listener');
let id = $(this).data('close');
if (id) {
triggers($(this), 'close');
}
else {
console.log('bubbling close');
$(this).trigger('close.zf.trigger');
}
},
Expand All @@ -51,7 +49,6 @@ Triggers.Listeners.Basic = {
}
},
closeableListener: function(e) {
console.log('in closeable listener');
e.stopPropagation();
let animation = $(this).data('closable');

Expand Down Expand Up @@ -247,14 +244,11 @@ Triggers.init = function($, Foundation) {
if (typeof($.triggersInitialized) === 'undefined') {
let $document = $(document);

console.log('inside initialization');
if(document.readyState === "complete") {
console.log('initializing because document complete');
Triggers.Initializers.addSimpleListeners();
Triggers.Initializers.addGlobalListeners();
} else {
$(window).on('load', () => {
console.log('initializing on load');
Triggers.Initializers.addSimpleListeners();
Triggers.Initializers.addGlobalListeners();
});
Expand Down

0 comments on commit 135d5d9

Please sign in to comment.