I think when the view renders model attribute are getting set, which is a change. Inside the function you can give a condition like this to prevent the execution of the function body. if(!_.isEqual(this.model.get('<attribut>'),this.model.previous('<attribute>'))){ //execute the function body }
I think when the view renders model attribute are getting set, which is a change. Inside the function you can give a condition like this to prevent the execution of the function body. if(!_.isEqual(this.model.get('<attribut>'),this.model.previous('<attribute>'))){ //execute the function body }