diff --git a/js/build.js b/js/build.js index 7cc6fb2..ea036f8 100644 --- a/js/build.js +++ b/js/build.js @@ -1,7 +1,11 @@ Fliplet.Widget.instance('inline-link', function(config) { + if ($(this).data('initialized')) { + return; + } + $(this).on('click', function(event) { event.preventDefault(); Fliplet.Navigate.to(config.action); - }); + }).data('initialized', true); });