From: Eduardo Mucelli R. Oliveira Date: Sun, 12 Jan 2014 17:24:53 +0000 (+0100) Subject: Correct way to check if cookie already exists on jquery.cookie 1.4 X-Git-Tag: 5.0.3~11^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F4137%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Correct way to check if cookie already exists on jquery.cookie 1.4 --- diff --git a/js/foundation/foundation.joyride.js b/js/foundation/foundation.joyride.js index af63e7b33..294bcf49d 100644 --- a/js/foundation/foundation.joyride.js +++ b/js/foundation/foundation.joyride.js @@ -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))