Skip to content

Commit

Permalink
Merge pull request VPenkov#40 from splattne/patch-2
Browse files Browse the repository at this point in the history
Declare variable self in order to avoid global assignment
  • Loading branch information
VPenkov committed May 1, 2016
2 parents 910c22e + 960d3e3 commit a74202a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/js/jquery.okayNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
}(function($) {
// Defaults

var okayNav = 'okayNav',
var self,
okayNav = 'okayNav',
defaults = {
parent: '', // will call nav's parent() by default
toggle_icon_class: 'okayNav__menu-toggle',
Expand Down

0 comments on commit a74202a

Please sign in to comment.