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

Cannot set property 'radialIndicator' of undefined #36

Open
davideferre opened this issue May 18, 2020 · 0 comments
Open

Cannot set property 'radialIndicator' of undefined #36

davideferre opened this issue May 18, 2020 · 0 comments

Comments

@davideferre
Copy link

davideferre commented May 18, 2020

I'm trying to use radialIndicator without jquery in a project where jquery is used for other purpose and I get this error:

Cannot set property 'radialIndicator' of undefined

Inspecting the error I found that the problem is here:

if ($) {
    $.fn.radialIndicator = function (options) {
      return this.each(function () {
        var newPCObj = radialIndicator(this, options);
        $.data(this, 'radialIndicator', newPCObj);
      });
    };
  }

Commenting out this part of code, all is working fine. It would be nice if you add an option to opt-out jquery combining the check of this new option with the if($). Alternatively I don't know if there's a better way to check if the initializations start in jquery style or not.

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

No branches or pull requests

1 participant