Skip to content

Commit

Permalink
Fix unique action key (#3863)
Browse files Browse the repository at this point in the history
  • Loading branch information
SynerG authored and Stevenic committed Jan 23, 2018
1 parent 9c73774 commit 14b4e39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Node/core/lib/dialogs/ActionSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ var ActionSet = (function () {
ActionSet.prototype.action = function (name, handler, options) {
if (options === void 0) { options = {}; }
var key = this.uniqueActionName(name);
this.actions[name] = { handler: handler, options: options };
this.actions[key] = { handler: handler, options: options };
return this;
};
ActionSet.prototype.uniqueActionName = function (name, cnt) {
Expand Down
2 changes: 1 addition & 1 deletion Node/core/src/dialogs/ActionSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export class ActionSet {

private action(name: string, handler: IActionHandler, options: IDialogActionOptions = {}): this {
var key = this.uniqueActionName(name);
this.actions[name] = { handler: handler, options: options };
this.actions[key] = { handler: handler, options: options };
return this;
}

Expand Down

0 comments on commit 14b4e39

Please sign in to comment.