mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #1322 class attributes must be defined in contructor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user