jrs-react 1.2.44 → 1.2.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.es.js CHANGED
@@ -4955,10 +4955,14 @@ class Backdrop extends JRHTML {
4955
4955
  }
4956
4956
  show() {
4957
4957
  this.backdrop = this.agregarHijo(this.backdropConfig);
4958
+ this.on = true;
4958
4959
  }
4959
4960
  hide() {
4960
- this.yo.removeChild(this.yo.children[this.yo.children.length - 1]);
4961
- this.hijos = [];
4961
+ if (this.on) {
4962
+ this.yo.removeChild(this.yo.children[this.yo.children.length - 1]);
4963
+ this.hijos = [];
4964
+ this.on = false;
4965
+ }
4962
4966
  }
4963
4967
  }
4964
4968
  class JRWindow extends JRFrame {
package/build/index.js CHANGED
@@ -4982,10 +4982,14 @@ class Backdrop extends JRHTML {
4982
4982
  }
4983
4983
  show() {
4984
4984
  this.backdrop = this.agregarHijo(this.backdropConfig);
4985
+ this.on = true;
4985
4986
  }
4986
4987
  hide() {
4987
- this.yo.removeChild(this.yo.children[this.yo.children.length - 1]);
4988
- this.hijos = [];
4988
+ if (this.on) {
4989
+ this.yo.removeChild(this.yo.children[this.yo.children.length - 1]);
4990
+ this.hijos = [];
4991
+ this.on = false;
4992
+ }
4989
4993
  }
4990
4994
  }
4991
4995
  class JRWindow extends JRFrame {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jrs-react",
3
- "version": "1.2.44",
3
+ "version": "1.2.46",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.es.js",
@@ -74,13 +74,16 @@ class Backdrop extends JRHTML{
74
74
  Object.assign(this.backdropConfig.style,params.backdropStyle)
75
75
  }
76
76
 
77
-
78
77
  show(){
79
78
  this.backdrop=this.agregarHijo(this.backdropConfig)
79
+ this.on=true
80
80
  }
81
81
  hide(){
82
- this.yo.removeChild(this.yo.children[this.yo.children.length-1])
83
- this.hijos=[]
82
+ if(this.on){
83
+ this.yo.removeChild(this.yo.children[this.yo.children.length-1])
84
+ this.hijos=[]
85
+ this.on=false
86
+ }
84
87
  }
85
88
  }
86
89