From: moldyman Date: Mon, 12 May 2014 18:25:26 +0000 (-0400) Subject: Fixed Reveal Close Dialog method; the settings variable will now default to the defau... X-Git-Tag: v5.2.3~28^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F5146%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fixed Reveal Close Dialog method; the settings variable will now default to the default values provided by lib reveal if the settings variable cannot resolve --- diff --git a/js/foundation/foundation.reveal.js b/js/foundation/foundation.reveal.js index 98f46dfb3..a5742782c 100644 --- a/js/foundation/foundation.reveal.js +++ b/js/foundation/foundation.reveal.js @@ -206,7 +206,7 @@ close : function (modal) { var modal = modal && modal.length ? modal : this.S(this.scope), open_modals = this.S('[' + this.attr_name() + '].open'), - settings = modal.data(this.attr_name(true) + '-init'); + settings = modal.data(this.attr_name(true) + '-init') || this.settings; if (open_modals.length > 0) { this.locked = true;