diff --git a/src/definitions/modules/flyout.js b/src/definitions/modules/flyout.js index b8ca1001fa..8d44b79229 100644 --- a/src/definitions/modules/flyout.js +++ b/src/definitions/modules/flyout.js @@ -68,8 +68,10 @@ $.flyout = $.fn.flyout = function(parameters) { moduleNamespace = 'module-' + namespace, $module = $(this), - $context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $body, - $close = $module.find(selector.close), + $context = [window,document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $body, + $closeIcon = $module.find(selector.close), + $inputs, + $focusedElement, $flyouts = $module.children(selector.flyout), $pusher = $context.children(selector.pusher), @@ -88,6 +90,7 @@ $.flyout = $.fn.flyout = function(parameters) { elementNamespace, id, + observer, currentScroll, transitionEvent, @@ -99,6 +102,7 @@ $.flyout = $.fn.flyout = function(parameters) { initialize: function() { module.debug('Initializing flyout', parameters); + module.create.id(); if(!isFlyoutComponent) { module.create.flyout(); if(!$.isFunction(settings.onHidden)) { @@ -127,13 +131,14 @@ $.flyout = $.fn.flyout = function(parameters) { } settings.actions.forEach(function (el) { var - icon = el[fields.icon] ? '' : '', + icon = el[fields.icon] ? '' : '', text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML), cls = module.helpers.deQuote(el[fields.class] || ''), click = el[fields.click] && $.isFunction(el[fields.click]) ? el[fields.click] : function () {} ; $actions.append($('