diff --git a/scripts/ripples.js b/scripts/ripples.js index 50591375..923c8a1c 100644 --- a/scripts/ripples.js +++ b/scripts/ripples.js @@ -1,9 +1,17 @@ /* Copyright 2014+, Federico Zivolo, LICENSE at https://github.com/FezVrasta/bootstrap-material-design/blob/master/LICENSE.md */ /* globals CustomEvent */ window.ripples = { + done: false, init : function(withRipple) { "use strict"; + if (this.done) { + return console.log("Ripples.js was already initialzied."); + } + + this.done = true; + + // Cross browser matches function function matchesSelector(domElement, selector) { var matches = domElement.matches ||