isobit-ui 0.0.274 → 0.0.275

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.
Files changed (2) hide show
  1. package/dist/index.js +28 -27
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.274
2
+ * isobit-ui v0.0.275
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -5345,37 +5345,38 @@ window.ui = _.ui = function (cfg) {
5345
5345
 
5346
5346
  window.addEventListener('resize', resize);
5347
5347
  var h = dialog.querySelector('.ui-panel-titlebar');
5348
- var acl = h.querySelector('.ui-js-close');
5349
5348
 
5350
- window.onkeyup = function (event) {
5351
- if (event.keyCode == 27) {
5352
- dialog.style.display = "none";
5353
- overlay.style.display = "none";
5349
+ if (h) {
5350
+ var acl = h.querySelector('.ui-js-close');
5354
5351
 
5355
- _.RSZ();
5356
- }
5357
- };
5352
+ window.onkeyup = function (event) {
5353
+ if (event.keyCode == 27) {
5354
+ dialog.style.display = "none";
5355
+ overlay.style.display = "none";
5356
+ }
5357
+ };
5358
5358
 
5359
- if (!acl) {
5360
- var span = document.createElement("i");
5361
- span.style.top = "6px";
5362
- span.style.right = "6px";
5363
- h.style.position = "relative";
5364
- span.style.position = "absolute";
5365
- span.style.color = "white";
5366
- span.className = "fa fa-window-close v-dialog-close";
5367
- acl = document.createElement("a");
5368
- acl.className = "ui-js-close ui-dialog-titlebar-icon ui-dialog-titlebar-close ui-corner-all";
5369
- acl.appendChild(span);
5370
- h.appendChild(acl);
5371
- acl.addEventListener("click", function () {
5372
- dialog.style.display = "none";
5373
- overlay.style.display = "none";
5374
- resize();
5375
- });
5359
+ if (!acl) {
5360
+ var span = document.createElement("i");
5361
+ span.style.top = "6px";
5362
+ span.style.right = "6px";
5363
+ h.style.position = "relative";
5364
+ span.style.position = "absolute";
5365
+ span.style.color = "white";
5366
+ span.className = "fa fa-window-close v-dialog-close";
5367
+ acl = document.createElement("a");
5368
+ acl.className = "ui-js-close ui-dialog-titlebar-icon ui-dialog-titlebar-close ui-corner-all";
5369
+ acl.appendChild(span);
5370
+ h.appendChild(acl);
5371
+ acl.addEventListener("click", function () {
5372
+ dialog.style.display = "none";
5373
+ overlay.style.display = "none";
5374
+ Vue.resize();
5375
+ });
5376
+ }
5376
5377
  }
5377
5378
 
5378
- resize();
5379
+ Vue.resize();
5379
5380
  },
5380
5381
  close: function close(ok) {
5381
5382
  var dlg = this.$el.parentElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.274",
3
+ "version": "0.0.275",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",