jrs-react 1.2.44 → 1.2.45

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
@@ -4957,8 +4957,10 @@ class Backdrop extends JRHTML {
4957
4957
  this.backdrop = this.agregarHijo(this.backdropConfig);
4958
4958
  }
4959
4959
  hide() {
4960
- this.yo.removeChild(this.yo.children[this.yo.children.length - 1]);
4961
- this.hijos = [];
4960
+ if (this.hijos.length) {
4961
+ this.yo.removeChild(this.yo.children[this.yo.children.length - 1]);
4962
+ this.hijos = [];
4963
+ }
4962
4964
  }
4963
4965
  }
4964
4966
  class JRWindow extends JRFrame {
package/build/index.js CHANGED
@@ -4984,8 +4984,10 @@ class Backdrop extends JRHTML {
4984
4984
  this.backdrop = this.agregarHijo(this.backdropConfig);
4985
4985
  }
4986
4986
  hide() {
4987
- this.yo.removeChild(this.yo.children[this.yo.children.length - 1]);
4988
- this.hijos = [];
4987
+ if (this.hijos.length) {
4988
+ this.yo.removeChild(this.yo.children[this.yo.children.length - 1]);
4989
+ this.hijos = [];
4990
+ }
4989
4991
  }
4990
4992
  }
4991
4993
  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.45",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.es.js",
@@ -79,8 +79,10 @@ class Backdrop extends JRHTML{
79
79
  this.backdrop=this.agregarHijo(this.backdropConfig)
80
80
  }
81
81
  hide(){
82
- this.yo.removeChild(this.yo.children[this.yo.children.length-1])
83
- this.hijos=[]
82
+ if(this.hijos.length){
83
+ this.yo.removeChild(this.yo.children[this.yo.children.length-1])
84
+ this.hijos=[]
85
+ }
84
86
  }
85
87
  }
86
88