Commit 122bbf21 authored by sstern's avatar sstern

Replace underscore with lodash in ./sidebar

parent 89431973
<script> <script>
import $ from 'jquery'; import $ from 'jquery';
import _ from 'underscore'; import { intersection } from 'lodash';
import '~/smart_interval'; import '~/smart_interval';
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
} else { } else {
changedCommands = []; changedCommands = [];
} }
if (changedCommands && _.intersection(subscribedCommands, changedCommands).length) { if (changedCommands && intersection(subscribedCommands, changedCommands).length) {
this.mediator.fetch(); this.mediator.fetch();
} }
}, },
......
import $ from 'jquery'; import $ from 'jquery';
import '~/gl_dropdown'; import '~/gl_dropdown';
import _ from 'underscore'; import { escape as esc } from 'lodash';
import { __ } from '~/locale'; import { __ } from '~/locale';
function isValidProjectId(id) { function isValidProjectId(id) {
...@@ -49,7 +49,7 @@ class SidebarMoveIssue { ...@@ -49,7 +49,7 @@ class SidebarMoveIssue {
renderRow: project => ` renderRow: project => `
<li> <li>
<a href="#" class="js-move-issue-dropdown-item"> <a href="#" class="js-move-issue-dropdown-item">
${_.escape(project.name_with_namespace)} ${esc(project.name_with_namespace)}
</a> </a>
</li> </li>
`, `,
......
Markdown is supported
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