Skip to content

Line 43: "detect a dollar object or create one if not found" - in some cases causes malfunctioning. #74

Description

@marszalek

Imagine situation where you have a large project and don't want to allow users to use a dollar sign i.e. from the console. You just want to hide it in some of your objects.
jStorage will then fail, coz in this line (43) it is checking for existance of jQuery and if it's not, it creates it.
I think you should assume that anyone who want to use it, is fully aware of its requirements.

In this big project which I am working on right now, we are very happy for jStorage, but need to comment out this line, coz jQuery initializing for the second time causes to recreate this object only in scope of jStorage, which is wrong.

Correct me if I misunderstand sth.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions