Skip to content

Commit

Permalink
don't attempt to interact with self.settings.$topbar if undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hayes committed Sep 23, 2013
1 parent 93e7dfe commit b2247f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/foundation/foundation.topbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@
});

$(window).on('resize.fndtn.topbar', function () {
if (typeof self.settings.$topbar === 'undefined') { return; }
var stickyContainer = self.settings.$topbar.parent('.' + this.settings.stickyClass);
var stickyOffset;

Expand Down

0 comments on commit b2247f4

Please sign in to comment.