This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/vuetify/es5/directives/resize/index.js

40 lines
872 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.Resize = void 0;
function inserted(el, binding) {
var callback = binding.value;
var options = binding.options || {
passive: true
};
window.addEventListener('resize', callback, options);
el._onResize = {
callback: callback,
options: options
};
if (!binding.modifiers || !binding.modifiers.quiet) {
callback();
}
}
function unbind(el) {
if (!el._onResize) return;
var _el$_onResize = el._onResize,
callback = _el$_onResize.callback,
options = _el$_onResize.options;
window.removeEventListener('resize', callback, options);
delete el._onResize;
}
var Resize = {
inserted: inserted,
unbind: unbind
};
exports.Resize = Resize;
var _default = Resize;
exports.default = _default;
//# sourceMappingURL=index.js.map