Skip to content

check for jQuery by looking for $ might cause conflicts #325

Closed
@timelyportfolio

Description

@timelyportfolio

I discovered this as I explored #83. In lines and lines of events, there is a check to see if jQuery is present by looking for $. I learned that the Chrome command-line API also defines a $ which causes $ to not be undefined when running from the console and the subsequent $(plotObj) to fail. I am aware of some other libraries that hijack the $. Would if( typeof jQuery !== undefined) be a more robust test? Or should $(plotObj) be wrapped in a try?

If nothing else, filing (and closing) this issue might help someone else in the future who might be trying to debug this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions