Skip to content

Commit

Permalink
Merge pull request #4137 from eduardom/master
Browse files Browse the repository at this point in the history
Correct way to check if cookie already exists on jquery.cookie 1.4
  • Loading branch information
Jordan Humphreys committed Jan 14, 2014
2 parents 98786d6 + 4688290 commit 357a365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/foundation/foundation.joyride.js
Expand Up @@ -136,7 +136,7 @@
}

// generate the tips and insert into dom.
if (!this.settings.cookie_monster || this.settings.cookie_monster && $.cookie(this.settings.cookie_name) === null) {
if (!this.settings.cookie_monster || this.settings.cookie_monster && !$.cookie(this.settings.cookie_name)) {
this.settings.$tip_content.each(function (index) {
var $this = $(this);
this.settings = $.extend({}, self.defaults, self.data_options($this))
Expand Down

0 comments on commit 357a365

Please sign in to comment.