ConnorAtherton / loaders.css

Delightful, performance-focused pure css loading animations.
https://connoratherton.com/loaders
10.21k stars 1.22k forks source link

Cannot read property 'fn' of undefined #73

Closed bradennapier closed 7 years ago

bradennapier commented 7 years ago

Looks like this is failing because it wants JQuery that I don't have. However, $ is defined because chrome defines it if you are not using JQuery.

  $.fn.loaders = function() {
    return this.each(function() {
      var elem = $(this);
      $.each(divs, function(key, value) {
        if (elem.hasClass(key))
          elem.html(addDivs(value))
      })
    });
  };
ConnorAtherton commented 7 years ago

We have marked the section in the README as optional, and added the header that it is for jQuery only. If you don't need this helper, can you just not include it in your build and just use the css from this project.