fixes #1322 class attributes must be defined in contructor

This commit is contained in:
plegall
2021-02-05 11:36:56 +01:00
parent eadc846bf6
commit 9c1f6c0c04

View File

@@ -142,10 +142,12 @@ $('.search-input').on('input', function() {
// Class to implement a temporary state and reverse it
class TemporaryState {
//Arrays to reverse changes
attrChanges = []; //Attribute changes : {object(s), attribute, value}
classChanges = []; //Class changes : {object(s), state(add:true/remove:false), class}
htmlChanges = []; //Html changes : {object(s), html}
constructor() {
//Arrays to reverse changes
this.attrChanges = []; //Attribute changes : {object(s), attribute, value}
this.classChanges = []; //Class changes : {object(s), state(add:true/remove:false), class}
this.htmlChanges = []; //Html changes : {object(s), html}
}
/**
* Change temporaly an attribute of an object