lib/generators/railsstrap/install/templates/bootstrap.js in railsstrap-3.3.4 vs lib/generators/railsstrap/install/templates/bootstrap.js in railsstrap-4.0.0.beta2

- old
+ new

@@ -1,16 +1,16 @@ -jQuery(function () { - $("a[rel~=popover], .has-popover").popover(); - $("a[rel~=tooltip], .has-tooltip").tooltip(); +(function ($) { + $("a[rel~=popover], .has-popover").popover(); + $("a[rel~=tooltip], .has-tooltip").tooltip(); - // comment this out if you want to add the animation to an element. You may need to handle events for them to work correctly. - // This is just a generic example, your mileage will vary depending on what you're trying to do. + // comment this out if you want to add the animation to an element. You may need to handle events for them to work correctly. + // This is just a generic example, your mileage will vary depending on what you're trying to do. // $("[data-animation]")(function () { // e.preventDefault(); // if ($(this).data("animation") != null) { // $(this).next().removeClass($(this).data("easein")).addClass("animated " + $(this).data("easein")); // } else { // $(this).next().addClass("animated " + _easeIn); // } // }); -}); +})(jQuery);