Skip to content

Commit

Permalink
Removing wrong portion of code related to subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Antonelli authored and diego-antonelli committed Nov 27, 2019
1 parent 05b50b4 commit d4efc4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Binary file modified dist/RadioButtonList.mpk
Binary file not shown.
10 changes: 4 additions & 6 deletions src/RadioButtonList/widget/AssocRadioButtonList.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,17 +168,16 @@ define([
logger.debug(this.id + "._handleValidation");
this._clearValidations();

var attribute = this.entity.split("/")[0];
if (this._isReadOnly || this._contextObj.isReadonlyAttr(attribute)) {
if (this._isReadOnly || this._contextObj.isReadonlyAttr(this.entity)) {
return;
}

var validation = validations[0],
message = validation.getReasonByAttribute(attribute);
message = validation.getReasonByAttribute(this.entity);

this._addValidation(message);

validation.removeAttribute(attribute);
validation.removeAttribute(this.entity);
},

_clearValidations: function () {
Expand Down Expand Up @@ -224,10 +223,9 @@ define([
})
});

var attr = this.entity.split("/")[0];
this.subscribe({
guid: this._contextObj.getGuid(),
attr: attr,
attr: this.entity,
callback: lang.hitch(this, function (guid, attr, attrValue) {
this._setRadiobuttonOptions();
})
Expand Down
Binary file modified test/Widgets/RadioButtonList.mpk
Binary file not shown.

0 comments on commit d4efc4a

Please sign in to comment.