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

Moved the exports ahead of DOMReady to enable proper initialization in a RequireJS/TypeScript context #81

Closed riy closed 9 years ago

riy commented 9 years ago

Including v1.1.1 in a RequireJS/TypeScript context always failed with Uncaught ReferenceError: jQueryCollapseSection is not defined @ jquery.collapse.js:34 because the exports weren't available when a particular constructor call (new jQueryCollapseSection($(this), _this);) was made.

Moved up the exports ahead of DOMReady to fix that.

danielstocks commented 9 years ago

Thanks