Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix Rails compilation #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Bugfix Rails compilation #147

wants to merge 1 commit into from

Conversation

raphaeljoie
Copy link

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.

without @, coffee may be compiled to a script that always run an "element is not defined" error

function Plugin(element1, options) {
        this.element = element1;
        this.options = $.extend({}, defaults, options);
        this.globals = {};
        this.$container = $(element);
        if (this.errorCheck()) {
          this.init();
        }
      }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant