zurb/foundation — pull request #3769 by glorpen (2013-12-01 14:51:41+00:00)
Title: Opening and creating within JS

Should fix eg. https://github.com/zurb/foundation/issues/3758

Closing by clicking on bg, X button or pressing ESC key now works properly when reveal is created and opened by javascript.

Example:

var $div = $("

asd

×

");
$div.foundation('reveal');
$div.foundation('reveal', 'open');