From 6851244452517ecaeb9e3f6f9f4fdb9c87f9ff35 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Tue, 19 Jul 2016 10:34:17 +0100 Subject: [PATCH] MDL-50937 jquery: remove instances of migrate plugin --- lib/jquery/plugins.php | 1 - lib/outputrequirementslib.php | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/jquery/plugins.php b/lib/jquery/plugins.php index 82411583921..eb0332252f2 100644 --- a/lib/jquery/plugins.php +++ b/lib/jquery/plugins.php @@ -18,7 +18,6 @@ * This file describes jQuery plugins available in the Moodle * core component. These can be included in page using: * $PAGE->requires->jquery(); - * $PAGE->requires->jquery_plugin('migrate'); * $PAGE->requires->jquery_plugin('ui'); * $PAGE->requires->jquery_plugin('ui-css'); * diff --git a/lib/outputrequirementslib.php b/lib/outputrequirementslib.php index 5bd654bdec9..8ef740532ab 100644 --- a/lib/outputrequirementslib.php +++ b/lib/outputrequirementslib.php @@ -430,10 +430,6 @@ class page_requirements_manager { * * NOTE: this should not be used in official Moodle distribution! * - * We are going to bundle jQuery 1.9.x until we drop support - * all support for IE 6-8. Use $PAGE->requires->jquery_plugin('migrate') - * for code written for earlier jQuery versions. - * * {@see http://docs.moodle.org/dev/jQuery} */ public function jquery() { @@ -450,7 +446,6 @@ class page_requirements_manager { * * Included core plugins: * - jQuery UI - * - jQuery Migrate (useful for code written for previous UI version) * * Add-ons may include extra jQuery plugins in jquery/ directory, * plugins.php file defines the mapping between plugin names and @@ -497,7 +492,7 @@ class page_requirements_manager { return false; } - if ($component !== 'core' and in_array($plugin, array('jquery', 'ui', 'ui-css', 'migrate'))) { + if ($component !== 'core' and in_array($plugin, array('jquery', 'ui', 'ui-css'))) { debugging("jQuery plugin '$plugin' is included in Moodle core, other components can not use the same name.", DEBUG_DEVELOPER); $component = 'core'; } else if ($component !== 'core' and strpos($component, '_') === false) { -- 2.43.0