Commit 22f1426b authored by Andrew Nicols's avatar Andrew Nicols
Browse files

Merge branch 'MDL-57604-master' of git://github.com/danpoltawski/moodle

parents 93c15c77 fef57181
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -95,8 +95,14 @@ define(['core/ajax', 'jquery', 'core/templates'], function(ajax, $, templates) {
// Do the dance for $.when()
return $.when.apply($, promises);
}).then(function() {
// Undo the $.when() dance from arguments object into an array..
var users = Array.prototype.slice.call(arguments);
var users = [];
// Determine if we've been passed any arguments..
if (arguments[0]) {
// Undo the $.when() dance from arguments object into an array..
users = Array.prototype.slice.call(arguments);
}
success(users);
}).catch(failure);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment