vendor/assets/javascripts/responsive-nav.js in responsive-nav-rails-1.0.15 vs vendor/assets/javascripts/responsive-nav.js in responsive-nav-rails-1.0.16

- old
+ new

@@ -1,6 +1,6 @@ -/*! responsive-nav.js v1.0.15 +/*! responsive-nav.js v1.0.16 * https://github.com/viljamis/responsive-nav.js * http://responsive-nav.com * * Copyright (c) 2013 @viljamis * Available under the MIT license @@ -36,11 +36,11 @@ var nav, opts, navToggle, styleElement = document.createElement("style"), - navOpen = false, + navOpen, // fn arg can be an object or a function, thanks to handleEvent // read more at: http://www.thecssninja.com/javascript/handleevent addEvent = function (el, evt, fn, bubble) { if ("addEventListener" in el) { @@ -253,9 +253,10 @@ }, // Private methods _init: function () { addClass(nav, "closed"); + navOpen = false; this._createToggle(); addEvent(window, "load", this, false); addEvent(window, "resize", this, false); addEvent(navToggle, "mousedown", this, false); \ No newline at end of file