Commit 4737d611 authored by Jose Vargas's avatar Jose Vargas

Replace underscore/lodash in shared folder

parent 3e56eb9e
import $ from 'jquery'; import $ from 'jquery';
import _ from 'underscore'; import { debounce } from 'lodash';
export function togglePopover(show) { export function togglePopover(show) {
const isAlreadyShown = this.hasClass('js-popover-show'); const isAlreadyShown = this.hasClass('js-popover-show');
...@@ -29,5 +29,5 @@ export function mouseenter() { ...@@ -29,5 +29,5 @@ export function mouseenter() {
} }
export function debouncedMouseleave(debounceTimeout = 300) { export function debouncedMouseleave(debounceTimeout = 300) {
return _.debounce(mouseleave, debounceTimeout); return debounce(mouseleave, debounceTimeout);
} }
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