Use alternatives to .find() because that's not polyfilled

This commit is contained in:
abalabahaha
2016-04-03 04:41:57 -07:00
parent b3a65a4ed6
commit ad66991f36
4 changed files with 54 additions and 16 deletions

View File

@@ -155,9 +155,7 @@ var Resolver = (function () {
var server = _ref;
if (role = server.roles.find(function (r) {
return r.id == resource;
})) {
if (role = server.roles.get("id", resource)) {
return role;
}
}