MDL-54944 js: remove uncessary .call() uses
authorDan Poltawski <dan@moodle.com>
Tue, 28 Jun 2016 21:40:29 +0000 (22:40 +0100)
committerDan Poltawski <dan@moodle.com>
Thu, 7 Jul 2016 11:11:06 +0000 (12:11 +0100)
Detected by http://eslint.org/docs/rules/no-useless-call

admin/tool/lp/amd/src/competencies.js
admin/tool/lp/amd/src/planactions.js
admin/tool/lp/amd/src/user_evidence_actions.js

index 1c9e9f7..79e1aa9 100644 (file)
@@ -65,7 +65,7 @@ define(['jquery',
                                   'drag-parentnode',
                                   'drag-handlecontainer',
                                   function(drag, drop) {
-                                      localthis.handleDrop.call(localthis, drag, drop);
+                                      localthis.handleDrop(drag, drop);
                                   });
             }
         ).fail(notification.exception);
index 5e1ee24..932318f 100644 (file)
@@ -139,7 +139,7 @@ define(['jquery',
         // Apply all the promises, and refresh when the last one is resolved.
         return $.when.apply($.when, ajax.call(calls))
             .then(function() {
-                self._renderView.call(self, arguments[arguments.length - 1]);
+                self._renderView(arguments[arguments.length - 1]);
             })
             .fail(notification.exception);
     };
index 174c47e..b9ef686 100644 (file)
@@ -126,7 +126,7 @@ define(['jquery',
         // Apply all the promises, and refresh when the last one is resolved.
         return $.when.apply($.when, ajax.call(calls))
             .then(function() {
-                self._renderView.call(self, arguments[arguments.length - 1]);
+                self._renderView(arguments[arguments.length - 1]);
             })
             .fail(notification.exception);
     };