MDL-65418 message: remove use of IE11 incompatible function in JS
authorRyan Wyllie <ryan@moodle.com>
Wed, 1 May 2019 05:21:49 +0000 (13:21 +0800)
committerRyan Wyllie <ryan@moodle.com>
Wed, 1 May 2019 05:21:49 +0000 (13:21 +0800)
message/amd/build/message_drawer_router.min.js
message/amd/src/message_drawer_router.js

index a135ac2..0ca149a 100644 (file)
Binary files a/message/amd/build/message_drawer_router.min.js and b/message/amd/build/message_drawer_router.min.js differ
index a03b86c..f5db00f 100644 (file)
@@ -81,8 +81,10 @@ function(
     var changeRoute = function(namespace, newRoute) {
         var newConfig;
 
-        // Check of the Route change call is made from an element in the app panel.
-        var fromPanel = [].slice.call(arguments).includes('frompanel');
+        // Check if the Route change call is made from an element in the app panel.
+        var fromPanel = [].slice.call(arguments).some(function(arg) {
+            return arg == 'frompanel';
+        });
         // Get the rest of the arguments, if any.
         var args = [].slice.call(arguments, 2);
         var renderPromise = $.Deferred().resolve().promise();