Skip to content

Commit

Permalink
Form Element: notify change, if data actually gets changed
Browse files Browse the repository at this point in the history
  • Loading branch information
plepe committed Mar 28, 2017
1 parent c3109cb commit 2e2ac21
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion inc/form_element.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,12 @@ form_element.prototype.show_errors=function() {
}

form_element.prototype.notify_change=function(ev) {
this.data=this.get_data();
var data = this.get_data()
if (this.data === data) {
return
}

this.data = data;

this.show_errors.call(this);

Expand Down

0 comments on commit 2e2ac21

Please sign in to comment.