Skip to content

Commit 587d1a7

Browse files
authored
Merge pull request #72 from czeckd/change-makename
Change makeName to protected
2 parents 26988e5 + 9323b2b commit 587d1a7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "../../node_modules/ng-packagr/package.schema.json",
33
"name": "angular-dual-listbox",
44
"description": "Angular 4+ component for a dual listbox control.",
5-
"version": "4.6.1",
5+
"version": "4.6.2",
66
"repository": {
77
"type": "git",
88
"url": "https://github.com/czeckd/angular-dual-listbox.git"

lib/src/dual-list.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ export class DualListComponent implements DoCheck, OnChanges {
504504

505505
// Allow for complex names by passing an array of strings.
506506
// Example: [display]="[ '_type.substring(0,1)', '_name' ]"
507-
private makeName(item:any) : string {
507+
protected makeName(item:any, separator = '_') : string {
508508
const display = this.display;
509509

510510
function fallback(itm:any) {
@@ -529,7 +529,7 @@ export class DualListComponent implements DoCheck, OnChanges {
529529

530530
for (let i = 0; i < this.display.length; i += 1) {
531531
if (str.length > 0) {
532-
str = str + '_';
532+
str = str + separator;
533533
}
534534

535535
if (this.display[i].indexOf('.') === -1) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-dual-listbox",
33
"description": "Angular 4+ component for a dual listbox control.",
4-
"version": "4.6.1",
4+
"version": "4.6.2",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/czeckd/angular-dual-listbox.git"

0 commit comments

Comments
 (0)