clean up lodash 4 upgrade crumbs
This commit is contained in:
@ -11,7 +11,7 @@ api._namespaces = <%= stringify(namespaces) %>;<%
|
||||
|
||||
_.each(actions, function (action) {
|
||||
var namespace = action.location.split('.').shift();
|
||||
if (_.includes(namespaces, namespace)) {
|
||||
if (_.include(namespaces, namespace)) {
|
||||
_.pull(namespaces, namespace);
|
||||
%>
|
||||
|
||||
|
||||
@ -112,6 +112,7 @@ fs.readdirSync(path.resolve(__dirname)).forEach(function (filename) {
|
||||
if (name !== 'index') {
|
||||
templates[name] = _.template(
|
||||
fs.readFileSync(path.resolve(__dirname, filename), 'utf8'),
|
||||
null,
|
||||
{
|
||||
imports: templateGlobals
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user