vue-resize
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -72,2 +72,3 @@ function getInternetExplorerVersion() { | ||
object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;'); | ||
object.setAttribute('aria-hidden', 'true'); | ||
object.onload = this.addResizeHandlers; | ||
@@ -100,3 +101,3 @@ object.type = 'text/html'; | ||
// eslint-disable-next-line no-undef | ||
version: "0.4.2", | ||
version: "0.4.3", | ||
install: install | ||
@@ -103,0 +104,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
var VueResize=function(e){"use strict";function t(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}function i(){i.init||(i.init=!0,s=-1!==t())}function n(e){e.component("resize-observer",r)}var s=void 0,r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{notify:function(){this.$emit("notify")},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.notify),this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||this.notify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!s&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.notify),delete this._resizeObject.onload)}},mounted:function(){var e=this;i(),this.$nextTick(function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight});var t=document.createElement("object");this._resizeObject=t,t.setAttribute("style","display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;"),t.onload=this.addResizeHandlers,t.type="text/html",s&&this.$el.appendChild(t),t.data="about:blank",s||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()}},o={version:"0.4.2",install:n},d=null;return"undefined"!=typeof window?d=window.Vue:"undefined"!=typeof global&&(d=global.Vue),d&&d.use(o),e.install=n,e.ResizeObserver=r,e.default=o,e}({}); | ||
var VueResize=function(e){"use strict";function t(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}function i(){i.init||(i.init=!0,s=-1!==t())}function n(e){e.component("resize-observer",r)}var s=void 0,r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{notify:function(){this.$emit("notify")},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.notify),this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||this.notify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!s&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.notify),delete this._resizeObject.onload)}},mounted:function(){var e=this;i(),this.$nextTick(function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight});var t=document.createElement("object");this._resizeObject=t,t.setAttribute("style","display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;"),t.setAttribute("aria-hidden","true"),t.onload=this.addResizeHandlers,t.type="text/html",s&&this.$el.appendChild(t),t.data="about:blank",s||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()}},o={version:"0.4.3",install:n},d=null;return"undefined"!=typeof window?d=window.Vue:"undefined"!=typeof global&&(d=global.Vue),d&&d.use(o),e.install=n,e.ResizeObserver=r,e.default=o,e}({}); |
@@ -78,2 +78,3 @@ (function (global, factory) { | ||
object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;'); | ||
object.setAttribute('aria-hidden', 'true'); | ||
object.onload = this.addResizeHandlers; | ||
@@ -106,3 +107,3 @@ object.type = 'text/html'; | ||
// eslint-disable-next-line no-undef | ||
version: "0.4.2", | ||
version: "0.4.3", | ||
install: install | ||
@@ -109,0 +110,0 @@ }; |
@@ -17,7 +17,7 @@ { | ||
"babel-loader": "^7.1.2", | ||
"babel-preset-env": "^1.6.0", | ||
"babel-preset-env": "^1.6.1", | ||
"cross-env": "^5.0.5", | ||
"css-loader": "^0.28.7", | ||
"file-loader": "^0.11.2", | ||
"style-loader": "^0.18.2", | ||
"file-loader": "^1.1.5", | ||
"style-loader": "^0.19.0", | ||
"vue-loader": "^13.0.0", | ||
@@ -24,0 +24,0 @@ "vue-template-compiler": "^2.1.0", |
{ | ||
"name": "vue-resize", | ||
"description": "Detect DOM element resizing", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"author": { | ||
@@ -38,6 +38,6 @@ "name": "Guillaume Chau", | ||
"devDependencies": { | ||
"babel-core": "^6.0.0", | ||
"babel-eslint": "^7.1.1", | ||
"babel-core": "^6.26.0", | ||
"babel-eslint": "^8.0.1", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-preset-es2015": "^6.14.0", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-preset-stage-0": "^6.16.0", | ||
@@ -53,3 +53,3 @@ "clean-css": "^4.1.8", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"npm-watch": "^0.2.0", | ||
"npm-watch": "^0.3.0", | ||
"rollup": "^0.50.0", | ||
@@ -64,4 +64,5 @@ "rollup-plugin-babel": "^3.0.2", | ||
"rollup-plugin-uglify": "^2.0.1", | ||
"rollup-plugin-vue": "^2.4.1", | ||
"uglify-es": "^3.0.28" | ||
"rollup-plugin-vue": "^2.5.2", | ||
"uglify-es": "^3.0.28", | ||
"vue-template-compiler": "^2.5.2" | ||
}, | ||
@@ -68,0 +69,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1291898
849
27