diff --git a/lib/amd/src/modal_factory.js b/lib/amd/src/modal_factory.js index 7932c86ee7f..1bc72025a42 100644 --- a/lib/amd/src/modal_factory.js +++ b/lib/amd/src/modal_factory.js @@ -77,8 +77,8 @@ define(['jquery', 'core/modal_events', 'core/modal', 'core/modal_save_cancel', ' */ var createFromElement = function(type, modalElement, triggerElement) { modalElement = $(modalElement); - var className = CLASSES[type]; - var modal = new className(modalElement); + var ClassName = CLASSES[type]; + var modal = new ClassName(modalElement); setUpTrigger(modal, triggerElement); return modal; diff --git a/mod/lti/amd/src/contentitem.js b/mod/lti/amd/src/contentitem.js index f8e26345dd7..42e9808c402 100644 --- a/mod/lti/amd/src/contentitem.js +++ b/mod/lti/amd/src/contentitem.js @@ -72,7 +72,7 @@ define( dialogue.show(); // On hide handler. - modal.getRoot().on(ModalEvents.hidden, function () { + modal.getRoot().on(ModalEvents.hidden, function() { // Empty modal contents when it's hidden. modal.setBody(''); diff --git a/theme/boost/amd/build/loader.min.js b/theme/boost/amd/build/loader.min.js index 30a4ec21ca2..04bc6a91813 100644 --- a/theme/boost/amd/build/loader.min.js +++ b/theme/boost/amd/build/loader.min.js @@ -1 +1 @@ -define(["jquery","./tether"],function(a,b){return window.jQuery=a,window.Tether=b,require(["theme_boost/util","theme_boost/alert","theme_boost/button","theme_boost/carousel","theme_boost/collapse","theme_boost/dropdown","theme_boost/modal","theme_boost/scrollspy","theme_boost/tab","theme_boost/tooltip","theme_boost/popover"],function(b){a('[data-toggle="popover"]').popover()}),{}}); \ No newline at end of file +define(["jquery","./tether"],function(a,b){return window.jQuery=a,window.Tether=b,require(["theme_boost/util","theme_boost/alert","theme_boost/button","theme_boost/carousel","theme_boost/collapse","theme_boost/dropdown","theme_boost/modal","theme_boost/scrollspy","theme_boost/tab","theme_boost/tooltip","theme_boost/popover"],function(){a('[data-toggle="popover"]').popover()}),{}}); \ No newline at end of file diff --git a/theme/boost/amd/src/loader.js b/theme/boost/amd/src/loader.js index 25665b42b94..99bce708444 100644 --- a/theme/boost/amd/src/loader.js +++ b/theme/boost/amd/src/loader.js @@ -39,7 +39,7 @@ define(['jquery', './tether'], function(jQuery, Tether) { 'theme_boost/tab', 'theme_boost/tooltip', 'theme_boost/popover'], - function(another) { + function() { jQuery('[data-toggle="popover"]').popover(); });