vendor/assets/javascripts/responsive-nav.js in responsive-nav-rails-1.0.38 vs vendor/assets/javascripts/responsive-nav.js in responsive-nav-rails-1.0.39

- old
+ new

@@ -1,6 +1,6 @@ -/*! responsive-nav.js 1.0.38 +/*! responsive-nav.js 1.0.39 * https://github.com/viljamis/responsive-nav.js * http://responsive-nav.com * * Copyright (c) 2015 @viljamis * Available under the MIT license @@ -652,8 +652,12 @@ */ return new ResponsiveNav(el, options); }; - window.responsiveNav = responsiveNav; + if (typeof module !== "undefined" && module.exports) { + module.exports = responsiveNav; + } else { + window.responsiveNav = responsiveNav; + } }(document, window, 0));