From eaec2fb776939e469c06797ceaba1ea6a460c58d Mon Sep 17 00:00:00 2001 From: Jack Date: Sun, 1 Nov 2015 14:29:31 -0500 Subject: [PATCH] Fixes static animation onComplete event --- RELEASE-NOTES.md | 1 + src/definitions/modules/transition.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index fb8ab6a47..40ba9a421 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -11,6 +11,7 @@ **Major Bug Fixes** - **Checkbox/Dropdown/Search** - Fixed issue where using `.trigger('change')` would not fire native `change` event. Only triggering event handlers attached with jQuery #3108 +- **Transition** - Fixed bug where static transitions (those that dont animate in/out of view) would not fire `onComplete` event **Bugs** - **Divider/Step/Modal/AD** - Fixes 1px jump at `@mobileBreakpoint` caused by incorrect edge conditions in media query #3180 **THanks @mdehoog** diff --git a/src/definitions/modules/transition.js b/src/definitions/modules/transition.js index d30169a79..1c00cc15a 100644 --- a/src/definitions/modules/transition.js +++ b/src/definitions/modules/transition.js @@ -228,7 +228,9 @@ $.fn.transition = function() { module.show(); } else { + module.verbose('Static animation completed'); module.restore.conditions(); + settings.onComplete.call(element); } } },