danielstocks / jQuery-Collapse

A lightweight (~1kb) jQuery plugin that enables expanding and collapsing content
http://webcloud.se/jQuery-Collapse/
MIT License
679 stars 153 forks source link

Error when concatenated with other scripts that use strict mode #95

Closed Zaporozhec7 closed 4 years ago

Zaporozhec7 commented 7 years ago

Error Uncaught ReferenceError: jQueryCollapseStorage is not defined occured when plugin file concatenated with other files that use operator "use strict"; Including plugin files separatelly fix that issue. But I think that is not very good solution, include so small files separatelly just to fix error. Other solution which fix that issue for me is replacing jQueryCollapseStorage = Storage; with window.jQueryCollapseStorage = Storage; here