You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
This was causing issues for me too. The CMS I work with uses an older version of jQuery. I need to load in the newer version of jQuery to meet the requirements of jStorage and I need to avoid conflicts. For reference, the code I am using is:
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
// <jStorage.js is imported here>
var jq180 = jQuery.noConflict(true);
(function($) {
// $.jStorage.set(); and other code goes here
})(jq180);
When I comment out the line mentioned by @marszalek, everything works fine. Otherwise I get a $.jStorage undefined error.
I think this is the same problem referenced in the following issue: #90
OR you could include two versions of jQuery on the page with no-conflict mode in another namespace. It's a great way to transition between versions over a few iterations.
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.
The text was updated successfully, but these errors were encountered: