Commit 3eb665d7 authored by Paul Slaughter's avatar Paul Slaughter

Merge branch...

Merge branch '196637-replace-underscore-with-lodash-for-app-assets-javascripts-sidebar' into 'master'

Replace underscore with lodash in ./sidebar

Closes #196637

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