mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Switch from underscore to lodash, #659
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
define([
|
||||
'mocks/dashboard-mock',
|
||||
'underscore',
|
||||
'lodash',
|
||||
'services/filterSrv'
|
||||
], function(dashboardMock, _) {
|
||||
'use strict';
|
||||
@@ -10,7 +10,7 @@ define([
|
||||
var _dashboard;
|
||||
|
||||
beforeEach(module('grafana.services'));
|
||||
beforeEach(module(function(){
|
||||
beforeEach(module(function() {
|
||||
_dashboard = dashboardMock.create();
|
||||
}));
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ require.config({
|
||||
kbn: 'components/kbn',
|
||||
|
||||
settings: 'components/settings',
|
||||
underscore: 'components/underscore.extended',
|
||||
'underscore-src': '../vendor/underscore',
|
||||
lodash: 'components/lodash.extended',
|
||||
'lodash-src': '../vendor/lodash',
|
||||
|
||||
moment: '../vendor/moment',
|
||||
chromath: '../vendor/chromath',
|
||||
@@ -47,10 +47,6 @@ require.config({
|
||||
},
|
||||
|
||||
shim: {
|
||||
underscore: {
|
||||
exports: '_'
|
||||
},
|
||||
|
||||
bootstrap: {
|
||||
deps: ['jquery']
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user