// // Popover // 'use strict'; var Popover = (function() { // Variables var $popover = $('[data-toggle="popover"]'); // Methods function init($this) { var popoverClass = ''; if ($this.data('color')) { popoverClass = ' popover-' + $this.data('color'); } var options = { trigger: 'focus', template: '' }; $this.popover(options); } // Events if ($popover.length) { $popover.each(function() { init($(this)); }); } })();