From ce7149b10c025cac9fc0eacc191ed7d03656e82d Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Wed, 30 Nov 2016 13:49:38 +0000 Subject: [PATCH] MDL-57197 js: fix AMD module warnings In 3.2 we are free of AMD lint warnings, unfortunately we can't expose them through grunt yet due to "File ignored because of a matching ignore pattern. Use "--no-ignore" to override" ps. this isn't related to MDL-57197 at all, i'm just a Rebel --- admin/tool/templatelibrary/amd/src/search.js | 1 + theme/boost/amd/build/drawer.min.js | Bin 2426 -> 2415 bytes theme/boost/amd/src/drawer.js | 3 ++- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/tool/templatelibrary/amd/src/search.js b/admin/tool/templatelibrary/amd/src/search.js index 04d27b0fd77..18623dffc0c 100644 --- a/admin/tool/templatelibrary/amd/src/search.js +++ b/admin/tool/templatelibrary/amd/src/search.js @@ -41,6 +41,7 @@ define(['jquery', 'core/ajax', 'core/log', 'core/notification', 'core/templates' * Get the current values for the form inputs and refresh the list of matching templates. * * @method refreshSearch + * @param {String} themename The naeme of the theme. */ var refreshSearch = function(themename) { var componentStr = $('[data-field="component"]').val(); diff --git a/theme/boost/amd/build/drawer.min.js b/theme/boost/amd/build/drawer.min.js index e77a4e353cba8b710bed0bfb4f26fd2f4190000f..854b6b97812e9745283d65f308efa418a03ec7e1 100644 GIT binary patch delta 12 Ucmew*^j>JgahA=OSXQtA04cHsz5oCK delta 24 gcmaDa^h;>NaTad9q|Ce&jgpMaV$IFRSyr$B0DgoCk^lez diff --git a/theme/boost/amd/src/drawer.js b/theme/boost/amd/src/drawer.js index 733b64f5c86..a0aae1b8853 100644 --- a/theme/boost/amd/src/drawer.js +++ b/theme/boost/amd/src/drawer.js @@ -83,7 +83,7 @@ define(['jquery', 'core/custom_interaction_events', 'core/log'], drawer.attr('aria-hidden', 'true'); drawer.addClass('closed'); M.util.set_user_preference(preference, 'false'); - }.bind(this)); + }); }; /** @@ -128,6 +128,7 @@ define(['jquery', 'core/custom_interaction_events', 'core/log'], * Prevent the page from scrolling when the drawer is at max scroll. * * @method preventPageScroll + * @param {Event} e */ Drawer.prototype.preventPageScroll = function(e) { var delta = e.wheelDelta || (e.originalEvent && e.originalEvent.wheelDelta) || -e.originalEvent.detail, -- 2.43.0