AshesOfOwls / jquery.shapeshift

A dynamic grid system with drag and drop functionality.
http://ashesofowls.github.com/jquery.shapeshift/
MIT License
1.67k stars 311 forks source link

Bugfix Rails compilation #147

Open raphaeljoie opened 7 years ago

raphaeljoie commented 7 years ago

When compiling inside a Rails project I get :

function Plugin(element1, options) {
        this.element = element1;
        this.options = $.extend({}, defaults, options);
        this.globals = {};
        this.$container = $(element);
        if (this.errorCheck()) {
          this.init();
        }
      }

and I always get an "element is not defined" error.