Skip to content

Commit

Permalink
Merge pull request #72 from czeckd/change-makename
Browse files Browse the repository at this point in the history
Change makeName to protected
  • Loading branch information
czeckd authored Feb 12, 2018
2 parents 26988e5 + 9323b2b commit 587d1a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "../../node_modules/ng-packagr/package.schema.json",
"name": "angular-dual-listbox",
"description": "Angular 4+ component for a dual listbox control.",
"version": "4.6.1",
"version": "4.6.2",
"repository": {
"type": "git",
"url": "https://github.com/czeckd/angular-dual-listbox.git"
Expand Down
4 changes: 2 additions & 2 deletions lib/src/dual-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ export class DualListComponent implements DoCheck, OnChanges {

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

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

for (let i = 0; i < this.display.length; i += 1) {
if (str.length > 0) {
str = str + '_';
str = str + separator;
}

if (this.display[i].indexOf('.') === -1) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-dual-listbox",
"description": "Angular 4+ component for a dual listbox control.",
"version": "4.6.1",
"version": "4.6.2",
"repository": {
"type": "git",
"url": "https://github.com/czeckd/angular-dual-listbox.git"
Expand Down

0 comments on commit 587d1a7

Please sign in to comment.