]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fixed Reveal Close Dialog method; the settings variable will now default to the defau... 5146/head
authormoldyman <erik.moldovan@door3.com>
Mon, 12 May 2014 18:25:26 +0000 (14:25 -0400)
committermoldyman <erik.moldovan@door3.com>
Mon, 12 May 2014 18:25:26 +0000 (14:25 -0400)
js/foundation/foundation.reveal.js

index 98f46dfb3dbc5199a26d13d616b5d7a602aeb8d2..a5742782cec5bf6903ced5088caf41ba46b6bc73 100644 (file)
     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;