Updating lodash version

This commit is contained in:
Jeff Avallone 2016-03-10 17:32:33 -05:00
parent a00a27e9b1
commit 3a9b48f481
3 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@
"karma-jasmine": "^0.3.1",
"karma-notify-reporter": "^0.1.1",
"karma-phantomjs-launcher": "^0.2.2",
"lodash": "^3.10.1",
"lodash": "^4.6.1",
"node-bourbon": "^4.2.3",
"snapsvg": "^0.4.0",
"through": "^2.3.8",

View File

@ -54,7 +54,7 @@ export default {
// and text value of the part, so `[aa]` will have only one item, but
// `[a\x61]` will contain two since the first matches "a" and the second
// matches 0x61 (even though both are an "a").
this.elements = _.unique(this.properties.parts.elements, part => {
this.elements = _.uniqBy(this.properties.parts.elements, part => {
return `${part.type}:${part.textValue}`;
});

View File

@ -47,7 +47,7 @@ export default {
setup() {
// Convert list of flags into text describing each flag.
this.flags = _(this.properties.flags.textValue).unique().sort().map(flag => {
this.flags = _(this.properties.flags.textValue).uniq().sort().map(flag => {
return this.flagLabels[flag];
}).value();