Browse Source

UI-2866: Migrate from underscore to lodash (#36)

* UI-2866: Reference lodash intead of underscore following migration

* UI-2866: Migrate underscore specific utils to lodash
4.3
Joris Tirado 8 years ago
committed by GitHub
parent
commit
a43a8640fe
9 changed files with 17 additions and 17 deletions
  1. +1
    -1
      app.js
  2. +1
    -1
      submodules/callLogs/callLogs.js
  3. +1
    -1
      submodules/devices/devices.js
  4. +1
    -1
      submodules/featureCodes/featureCodes.js
  5. +1
    -1
      submodules/groups/groups.js
  6. +7
    -7
      submodules/myOffice/myOffice.js
  7. +3
    -3
      submodules/strategy/strategy.js
  8. +1
    -1
      submodules/users/users.js
  9. +1
    -1
      submodules/vmboxes/vmboxes.js

+ 1
- 1
app.js View File

@ -1,6 +1,6 @@
define(function(require) {
var $ = require('jquery'),
_ = require('underscore'),
_ = require('lodash'),
monster = require('monster');
require([


+ 1
- 1
submodules/callLogs/callLogs.js View File

@ -1,6 +1,6 @@
define(function(require) {
var $ = require('jquery'),
_ = require('underscore'),
_ = require('lodash'),
monster = require('monster');
var app = {


+ 1
- 1
submodules/devices/devices.js View File

@ -1,6 +1,6 @@
define(function(require) {
var $ = require('jquery'),
_ = require('underscore'),
_ = require('lodash'),
monster = require('monster'),
toastr = require('toastr');


+ 1
- 1
submodules/featureCodes/featureCodes.js View File

@ -1,6 +1,6 @@
define(function(require) {
var $ = require('jquery'),
_ = require('underscore'),
_ = require('lodash'),
monster = require('monster'),
chart = require('chart');


+ 1
- 1
submodules/groups/groups.js View File

@ -1,6 +1,6 @@
define(function(require) {
var $ = require('jquery'),
_ = require('underscore'),
_ = require('lodash'),
monster = require('monster'),
toastr = require('toastr');


+ 7
- 7
submodules/myOffice/myOffice.js View File

@ -1,6 +1,6 @@
define(function(require) {
var $ = require('jquery'),
_ = require('underscore'),
_ = require('lodash'),
monster = require('monster'),
chart = require('chart');
@ -129,20 +129,20 @@ define(function(require) {
.append(template);
createDoughnutCanvas($devicesCanvas, {
data: _.pluck(devicesDataSet, 'count'),
backgroundColor: _.pluck(devicesDataSet, 'color'),
data: _.map(devicesDataSet, 'count'),
backgroundColor: _.map(devicesDataSet, 'color'),
borderWidth: 0
});
createDoughnutCanvas($assignedNumbersCanvas, {
data: _.pluck(assignedNumbersDataSet, 'count'),
backgroundColor: _.pluck(assignedNumbersDataSet, 'color'),
data: _.map(assignedNumbersDataSet, 'count'),
backgroundColor: _.map(assignedNumbersDataSet, 'color'),
borderWidth: 0
});
createDoughnutCanvas($classifiedNumbersCanvas, {
data: _.pluck(classifiedNumbersDataSet, 'count'),
backgroundColor: _.pluck(classifiedNumbersDataSet, 'color'),
data: _.map(classifiedNumbersDataSet, 'count'),
backgroundColor: _.map(classifiedNumbersDataSet, 'color'),
borderWidth: 0
});


+ 3
- 3
submodules/strategy/strategy.js View File

@ -1,6 +1,6 @@
define(function(require) {
var $ = require('jquery'),
_ = require('underscore'),
_ = require('lodash'),
monster = require('monster'),
timezone = require('monster-timezone'),
toastr = require('toastr');
@ -1668,7 +1668,7 @@ define(function(require) {
monster.parallel(holidayRulesRequests, function(err, results) {
// First extract all ids from the new holidayList
var existingHolidaysCallflowsIds = [],
newHolidayCallflowsIds = _.pluck(holidayRulesRequests, 'id');
newHolidayCallflowsIds = _.map(holidayRulesRequests, 'id');
// Find all IDs of existing Callflows in the Main Callflow that are linking to the Main Holidays
_.each(mainCallflow.flow.children, function(directChild, id) {
@ -3306,7 +3306,7 @@ define(function(require) {
}
},
success: function(data, status) {
var mapCallflowsByOwnerId = _.indexBy(data.data, 'owner_id');
var mapCallflowsByOwnerId = _.keyBy(data.data, 'owner_id');
_callback(null, mapCallflowsByOwnerId);
}
});


+ 1
- 1
submodules/users/users.js View File

@ -1,6 +1,6 @@
define(function(require) {
var $ = require('jquery'),
_ = require('underscore'),
_ = require('lodash'),
monster = require('monster'),
timezone = require('monster-timezone'),
toastr = require('toastr');


+ 1
- 1
submodules/vmboxes/vmboxes.js View File

@ -1,6 +1,6 @@
define(function(require) {
var $ = require('jquery'),
_ = require('underscore'),
_ = require('lodash'),
monster = require('monster'),
toastr = require('toastr'),
timezone = require('monster-timezone');


Loading…
Cancel
Save