Add lodash includes as an alias for contains

As we use an older version of lodash, _.includes is not a function.
So we have to add the alias ourselves.

This is related to the following restangular issue on github:
https://github.com/mgonto/restangular/issues/1314
pull/4159/head
Alex Dik 9 years ago
parent fcc2cd39a6
commit ecfc2cf4f5
  1. 4
      frontend/app/global.js

@ -71,3 +71,7 @@ require('angular-ui-select/dist/select');
require('angular-ui-select/dist/select.css'); require('angular-ui-select/dist/select.css');
require('restangular'); require('restangular');
// 'includes' is not a function in older versions of lodash, so we need to substitute
// due to the update related to https://github.com/mgonto/restangular/issues/1314
_.includes = _.includes || _.include || _.contains;

Loading…
Cancel
Save