corregido problema de elementos iguales

This commit is contained in:
nelo 2017-01-16 07:36:59 +01:00
parent b9e4f8fc92
commit 0dcb581c78
1 changed files with 1 additions and 4 deletions

View File

@ -17,7 +17,6 @@ export const COMPONENT = {
this.$onChanges = function (changes) { this.$onChanges = function (changes) {
if(this.client){ if(this.client){
this.clientOld = copyObject(this.client); this.clientOld = copyObject(this.client);
this.client.navigate = false;
} }
} }
@ -30,14 +29,12 @@ export const COMPONENT = {
); );
function callback(transition) { function callback(transition) {
if(!equalsObject(self.client, self.clientOld) && !self.client.navigate){ if(!equalsObject(self.client, self.clientOld)){
self.state = transition.to().name; self.state = transition.to().name;
var dialog = document.querySelector('dialog'); var dialog = document.querySelector('dialog');
dialog.showModal(); dialog.showModal();
return false; return false;
} }
else
self.client = copyObject(self.clientOld);
} }
this.submit = function() { this.submit = function() {